Show only changed axis labels
Given following x- or y-axis categories.
["Jan", "Jan", "Jan", "Feb", "Feb", "Mar", "Mar", "Mar", "Mar", "May"]
It would be great if we could show only changed labels (like a more advanced "labels.step" option). Like follows:
|
|
|______________________
|Jan|||Feb||Mar||||May|
3
votes
M
shared this idea
-
You can use the labels.formatter and check each value against the previous value. Then return null or "" if it is the same.
-
M commented
Hmm perhaps this could be achieved with pre processing, but if you "null" the equal values there a still SVG elements rendered (I think).