Home › forums › Using CanvasJS › x axis time from different days with breaks
Tagged: x axis time days
When using a line chart to plot stock prices, the x axis uses a uniform time interval and ignores the values of the supplied data.
For example, a chart showing the price for the last 5 days will draw prices for the 6.5 hour trading day, then a flat line for the 17.5 hours from the market close to the market open the following day.
Does an attribute exist to override this default behavior?
You can either use labels or set interval property of Axis to override this behaviour. If this doesn’t help, please create a jsfiddle with your sample code so that we can have a look.
You must be logged in to reply to this topic.