-
-
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
Exception when plotting line charts with starting/ending nan values #869
Comments
Workaround: Just remove all the nullSpots/nans. Drawback: data logic (eg axis, view windows is a bit harder) and missing data in the middle are "interpolated" with a line between known values. Not best, but ok given that I was in rush. |
Tendrian que solucionar esto. |
Hi. As I explained in the issue template, It helps me a lot if you provide a reproducible code (in a main.dart function). Thanks! |
Hi. |
Cheers and congrats on an amazing library!
I am plotting LineChartBarData that contains several NaN values at the beginning/ending of List
I got exception:
Tried:
To add
FlSpot.nullSpot
, to add correct x value butdouble.nan
for y.However everything works fine if the null spots are "in the middle" of the series. Also works by adding dummy real values. But it defeats the purpose of showing that the data is missing (relevant)
Do I have workarounds?
Kind thanks!
Flutter Channel stable, 2.5.3, on Ubuntu 20.04.3
fl_chart: version: "0.40.6"
The text was updated successfully, but these errors were encountered: