Home forums Using CanvasJS X- axis Interval

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 4 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13550

    Uday
    Member

    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.

    #13554

    Vishwas R
    Keymaster

    @uday,

    You can use viewportMinimum, viewportMaximum and rangeChanging event to change interval based on zoom level. Please check this jsfiddle.


    Vishwas R
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.