Home Forums StockChart Support Setting IntervalType in react

Setting IntervalType in react

Viewing 3 posts - 1 through 3 (of 3 total)
  • #33542

    I would like to set intervalType in time (09:00~17:00).

    I have no x data, I am only having y data.

    How can I set interval type without x data?

    https://stackblitz.com/edit/react-stockchart-multiple-charts-panes-nbqbkq

    Here is the link I have been working on.

    • This topic was modified 3 years, 9 months ago by wellgdgd.
    #33603

    @wellhys,

    When x-values are not passed, it takes numeric values 0,1,2,3,… In case of numeric axis, intervalType will be number. To set 12 hours interval, you will have to use date-time axis with interval: 12, intervalType:"hours". Else if you like to go with numeric-data, you can set the interval: 12 if it’s hourly data.
    Chart with Date Time Axis and Interval


    Vishwas R
    Team CanvasJS

    #33620

    Thank you! it works!

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

You must be logged in to reply to this topic.