Home forums Chart Support React – x aisx valueFormatString

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

    Hi,
    Possible have dynamic valueFormatString on x-axis?

    Let say my x-axis is show dateTime, by default the data show 3 years result so it format to YYYY/MMM/DD HH:mm. Then when user zoom the chart, if the result is within 1 year, then it will show MMM/DD HH:mm without YYYY.

    Thank You

    #32027

    @weihengtest1990,

    You can update valueFormatString on zooming with the help of rangeChanging event to achieve your requirement. Please take a look at this JSFiddle for an example on the same.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.