How to create a Bar graph what shows data from the last week?

I am building a simple self-improvement app, and you can set your mood each day after journaling.
I want a graph on the home screen showing your mood over the past week.
I have tried a couple of tutorials using the bubbles charts plugin but none worked.

A mood is a field in the Journal Data type

Any ideas on how to do this?

Please remember I am still a beginner

Are you facing trouble setting up the chart or bubble charts is not enough for you?

1 Like

Hi there, @ckm3dia… we don’t now what a “mood” is in your app, and we don’t know how you are storing moods. That being said, if you have a data type called Mood, you could use the following constraints to get a user’s moods over the past week.

Actually, since I am sure a user can’t create moods in the future, the middle constraint could just be Created Date < Current date/time.

Hope this helps.

Best…
Mike

2 Likes

Thank you Mike! I am sorry for not specifying what a mood is in my app, a mood is a field within journaling

Okay, then you would search for journals with the same constraints.

1 Like

I dont know how to do it

Thank you! I will try it and then tell you if it works