Replies: 1 comment 1 reply
-
Hi @Sofia-vig There is a workaround. You can set the let data = [
{value:5},
{value:1},
{value:0.5},
{value:0},
{value:null},
{value:1},
]
data = data.map(item => {
if(!item.value) {
item.dataPointColor = 'transparent' ; // OR item.dataPointRadius = 0.1;
}
return item;
}); Alternatively, we have a prop named |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experiencing an issue where I need to display all the labels on a line chart, but when the data value is null or 0, a point is still displayed on the chart. I would like a feature that allows the chart to hide points when the value is null or 0 while still displaying the corresponding labels. This would help in creating a cleaner and more accurate representation of the data.
If a feature to hide points with null or 0 values cannot be added directly, is there a workaround or custom solution that can be applied? Any guidance or suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions