google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.8k stars 1.2k forks source link

Auto-scaling on x-axis (LineChart) #737

Open nurkinali opened 2 years ago

nurkinali commented 2 years ago

Hello,

I am working on a mobile application using Bluetooth sensor. My goal is to visualize Bluetooth data on graph.

I am receiving high amount of real time data and as the time goes by, the application gets very heavy and laggy. I guess it is because I am displaying all data that I receive. For example x-axis (time) is going to infinity. I guess if I were scaling the axis automatically, it could have been better (?). For example, only showing 5 seconds of data (0 - 5, then 1 - 6, then 2 - 7 and so on) instead of (0 - untilTheApplicationStops)... Although I couldn't find how to achieve this using LineChart. Looks like I am missing something. Any thoughts?

Thank you very much.