-
Notifications
You must be signed in to change notification settings - Fork 723
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
Hide parts of a dataset #404
Comments
I am marking this as a feature request and looking into it but I'm leaning towards this being a simple oversight. Possibly should be the default behavior. Thanks for filing the issue. NOTE: This is also replicated in bar charts so look into AxisChart.js |
Successfully tracked this down to most definitely being a bug. charts/src/js/utils/helpers.js Lines 49 to 56 in 9dce5cf
The function for Causing it to fail when it's called here when initializing an AxisChart with a value of 0. Since 0 is a Effectively killing the desired functionality. charts/src/js/utils/axis-chart-utils.js Line 39 in 9dce5cf
As for the fix right now. I am just going to patch the correct |
Better null value handling. Add option for filling zero/null values to maintain backwards compat.
Validate this and let me know :D |
I installed from the GitHub
But I can't get it t work, I still get the continuous line 😕 |
Yeah sorry, I should've expanded on the implementation more. Also need to update the docs. So the value Here's how to use the
|
Yes this is the expected behavior right now. Need to review #243 or something similar for null value support in line charts. This is a stop gap solution right now to draw 0s. Bar charts exhibit the desired behavior.
Yeah thats also work that needs to be done. New release is going to most likely be after I'm done updating the docs and adding CI |
Expected Behaviour
When a value on a dataset is null or a dataset is incomplete, a gap appears at that place.
Maybe a setting could be added to the dataset settigns for example:
Actual Behaviour
The line continues straight, ignoring the missing data.
Steps to Reproduce:
Create an axis chart with two datasets, one smaller than the other, and see the issue:
Here, I would like to have the blue line stop when I haven't got any more data (after 28/11/2022).
Frappe Charts version: 1.6.2
Codepen / Codesandbox: https://codepen.io/rafalou38/pen/rNKKvOw
The text was updated successfully, but these errors were encountered: