I am trying to build a tracker, where the user regularly (eg daily) tracks some values and those values should be displayed in a Chart Widget and listed in a Listview item.
I got very far already by discussing a lot with ChatGPT to help me set up everything else, and it's been a great help, but now I am feeling I'm running in circles with it.
Display a Firestore Value Collection in Chart Widget and ListView
I have tried so much, but I also don't know how to explain it or how to separate things from each other.
Here is what I currently have:
The Chart widget has a Query for the Value Collection, then I want to display those values with a timestamp on the Chart, also same for the ListView.
But there is a hick up somewhere, because the structure is like this:
Collection: item
Containing some general parameters and meta data about what's tracked.
Then it has a subcollection called itemValueCollection in which each Document contains the Values and again other parameters and info.
Then there is a lot of stuff going on with filters and datatypes and page parameters going from screen to screen.
In the screenshot you can see one photo from a test built and one from the editor (how it SHOULD look like)
The query points to the subcollection itemValueCollection with the data and references also the itemID from the item collection, so that it can display all values from one item.
Also there are filters so that only the right kind of values are displayed.
What other infos do I need to give to you?
The data in Firestore seems to be correct now.