Home Forums Chart Support Month definition for a time Xaxis

Month definition for a time Xaxis

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

    Hello; I just “discovered” that for a canvasJS time Xaxis the months are to be entered as 0..11 and not as usual 1..12.
    Is that wanted or a “coincidence”.
    This means that an adjustment is necessary every time date values are taken from other sources.

    #28992

    @franzda,

    In JavaScript month index starts from 0(January) and ends at 11(December). For more information please refer to this StackOverflow page.

    ____
    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.