If I have a stream of values, how can I draw a line chart in real-time based on those values?
Real-time charts can be created by continuously adding new points in existing series in chart. Timer is used to continuously add new points in the chart. Step1: Create a dataset with table, which should contain two columns. The following code example shows how to create a dataset with table.
Not sure if this will help but I have just added a plugin to Flutter that may do what you need, or if not at least give you some ideas. You can find it here
And in this gist I have modified the example code to read the data from the device sensor stream (in real-time) which it then graphs out.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With