-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
XYChart not allowing missing data points #5293
Comments
I am trying to work on this issue, but I need more details when |
Thank you for your work on this. |
Google Chart API by default leaves a similar break, according to its documentation https://developers.google.com/chart/interactive/docs/gallery/linechart?csw=1#Configuration_Options under InterpolateNulls. |
Yes thank you for your work on this. |
Sorry for taking a while to work on this; I made changes so that the passed-in NaN values break the line before and after the missing point. I wonder if we should include options so that users can customize how NaN values are represented. One possibility is to assign a different theming variable (maybe with a dashed line or lighter color as shown in https://observablehq.com/@d3/line-chart-missing-data/2?intent=fork) This would probably be a separate issue after this one has been resolved. |
Thanks for your work on this. |
спасибо большое |
I do not insist, but I'd omit value value rather than introducing NaN
|
Description
In some lines of work, there can be missing data points.
At the moment, XYChart throws errors if there are missing data points.
I hope this can be included in future.
Steps to reproduce
e.g.
line [15, 20, 10, , 15]
Screenshots
No response
Code Sample
No response
Setup
Suggested Solutions
Ideally want to be able to use
line [15, 20, 10, , 15]
or
line [15, 20, 10, NaN, 15]
to specify a data point is missing, and the line breaks at that point.
Most established graphing packages allow missing data points.
Additional Context
No response
The text was updated successfully, but these errors were encountered: