Home forums Chart Support Uneven date intervals in x-axis

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

    Is it possible to use uneven date intervals (i.e. last day of month), when x-axis values are Date objects? As seen in this JS Fiddle, doing so causes incorrect dates to show: https://jsfiddle.net/q8Lcbo73/

    #31359

    @plotter,

    Passing date values as a valid JavaScript date-object should also work fine in your case. Please take a look at this updated JSFiddle for the same.

    Basically, in JavaScript month index starts from 0(January) and ends at 11(December). For more information please refer to this Stack Overflow page.


    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.