Home Forums Chart Support Change x value format on zoom

Change x value format on zoom

Viewing 2 posts - 1 through 2 (of 2 total)
  • #31391

    Hello, is it possible to change the format of the x value when zoomed? For example, I’d like a timestamp to show year-month-day on default, and then year-month-day hour-min when zoom is used.

    #31402

    @joshuasosa,

    With the help of rangeChanging event, you can update the interval, intervalType, valueFormatString, etc. of axisX based on the zoom level. Please refer to this JSFiddle for an example on the same.


    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.