Home › forums › Using CanvasJS › Irrelevant Data on X-Axis
Tagged: stacked column irrelevant data
This topic contains 4 replies, has 2 voices, and was last updated by sufyan.cs10 1 year, 3 months ago.
I want to discuss the extra or irrelevant data that i am facing on x-axis.
I have created a fiddle for this issue where i can see the extra years from 2006-2009. When there is no data on these years then these years should not come in the view. I have tried to remove the interval on axisX but still these years come. I have taken your example for this issue. Please have a look into it.
You can use Axis / Scale Breaks to shrink and remove the unnecessary regions.
Please take a look at updated JSFiddle.
Why is there a break between 2005-2010? Can we remove that to show it as a plain record?
Scale Breaks are used to shrink the axis-range in order to remove unnecessary regions.
You can minimize the space occupied by the break using spacing and remove the scale-break line by setting lineThickness to 0. Please take a look at this updated jsfiddle.
Thanks @vishwas R.
You must be logged in to reply to this topic.