Data received from the sensor was received over time and stored in TinyDB.
In order to draw a chart, I want to create and store the x-coordinate as a variable called times and express the y-coordinate as the value received from the sensor. Press the button to draw the chart, but it initializes as you exit the screen. How do I express the x-coordinates in time, the y-coordinates in weight, and let the charts be saved even when they leave the screen?
This is how I understood saving data through tags. But the image above seems to be in the form of putting values in advance, so how do I divide the data I'll input separately every time I press the button?
I am unsure whether my Fill Parent settings for the Chart component were necessary, or if it was my repeatedly changing the TinyDB tag/value that triggered the chart redraw.