Home › forums › Using CanvasJS › X- axis Interval
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 1 year, 7 months ago.
I made a dynamical graph. It starts with 1 value on x-axis and and will have 30+ values by the end if i set the x-axis interval=1 It getting messy on x-axis label. And when i change interval programmatically it look good but I also have zoom functionality. When I zoom in I won’t be able to see the other tick value like (1,2,3,4,…) instead of (1,4,7,10…). Is there a solution that can solve my problem.
You can use viewportMinimum, viewportMaximum and rangeChanging event to change interval based on zoom level. Please check this jsfiddle.
You must be logged in to reply to this topic.