Home › forums › Using CanvasJS › Force empty labels on unexistant data
This topic contains 1 reply, has 2 voices, and was last updated by Sunil Urs 4 years, 8 months ago.
I’m creating some simple line graphs where X data aren’t linear (example: X: 1, 3, 6) .
The points are correctly distributed and displayed in the graph X axis, but in the nonesistant positions it automatically compile the label (2, 4, 5 appears).
There is a way to hide the X labels where there isn’t any related data?
Those labels are coordinates on the axis and are shown irrespective of whether a point exists or not. But in case you want to hide them, there is a workaround that I can suggest. But it works only if all x values are integers – or multiples of the set “interval”.
Here is a JSFiddle http://jsfiddle.net/canvasjs/WH3Tt/
You must be logged in to reply to this topic.