Home Forums Chart Support indexLabel with the name of month not in english

indexLabel with the name of month not in english

Viewing 3 posts - 1 through 3 (of 3 total)
  • #38982

    Hello,
    I set indexLabel with xValueFormatString: “MMMM:”.
    What I see is the neame of the months in english.
    Is possibile to set them in other languages? For example, in italian?

    Thank you

    Andrea

    #38985

    Andrea,

    You can show month names in Italian by passing month names in culture. Below is the code-snippet showing the same.

    CanvasJS.addCultureInfo("it", {                  
      months: ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"]      
    });
    var chart = new CanvasJS.Chart("chartContainer", {
      culture: "it",
      .
      .
      .
    }

    Please take a look at this JSFiddle for an example.
    Chart Localization - Showing Months in Italian


    Vishwas R
    Team CanvasJS

    #38989

    Thank you very much for this perfect answer, fantastic!!

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

You must be logged in to reply to this topic.