Home forums Using CanvasJS x axis time from different days with breaks

This topic contains 1 reply, has 2 voices, and was last updated by  Anjali 1 year, 7 months ago.

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

    Tom Shaughnessy

    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.


    • This reply was modified 1 year, 7 months ago by  Anjali.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.