Home › Forums › StockChart Support › Setting IntervalType in react › Reply To: Setting IntervalType in react
@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.
interval: 12, intervalType:"hours"
interval: 12
— Vishwas R Team CanvasJS