Home Forums Chart Support When we use One Month AFter presnt

When we use One Month AFter presnt

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

    Hello can any one explain we are using demo version and we insert data for same month but graph chart is showing data in next month.

    Like this using
    { x: new Date(2020, 07, 12), y: 60 },
    but when display chart is showing August.

    What is the issue I don’t understand.

    #29838

    @shima96160,

    In JavaScript month starts from 0(January) and ends at 11(December). So while displaying they are incremented by 1. However, you can use ISO format to pass month from 1 to 12 (Example: “2015-03-25” is considered as March 25, 2015). You can adopt the one of the format to fit your requirements.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.