-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding more lines to the same chart panel in realtime? #1691
Comments
It should be very simple, you just need to keep a list of showingLines and update the list when a new data comes. CleanShot.2024-06-21.at.00.14.22.mp4 |
Amazing! Thank you! One other question: is there a way to specify a the axis step? I found the grid size control, but cannot figure out how to adjust the numbers on the axis to match. |
Also, it there a way to keep the grid lines showing when there is no data? |
You can use |
It is a bug and should be fixed in the next version. Stay tuned! 😊 |
The FLGridData intervals only seems to control the grid and not the text on the axis. I got the FLTitlesData to adjust the text on the axis, but it seems quite complicated for such a simple thing. I had to add a widget or I was getting errors. It's such a basic thing, seems like there should be something that works like the minX/maxX/etc... of at the very most like the FLGridData intervals. Am I missing something? |
It's very simple, you just need to change the interval property in the SideTitles class. (no need to update other things) CleanShot.2024-06-21.at.17.48.54.mp4 |
Your support for this package is incredible! Thank you! I'm not clear though, why this works: double verticalInterval = 1.0; But, this does not: sideTitles: SideTitles( |
Ok, I figured it out, a 'const' goes in front of bottomTitles: const AxisTitles( FYI, in your example, the verticalInterval and horizontalInterval variables are assigned to the wrong axis. |
Landed in 0.69.0 |
All of the line chart examples seems to have a predetermined number of lines hard coded in. Is it possible to add lines on the fly? For example, if you were reading some data from a device on the serial port (say periodic samples of 256 points of data) and wanted to add a new line on the same chart panel every time a new sample came in?
The minX, maxX, minY, maxY would be constant. New lines of different color would be added and possibly line labels.
The text was updated successfully, but these errors were encountered: