Home forums Using CanvasJS Localization of chart legends

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 4 months, 3 weeks ago.

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

    prkashyap
    Member

    Hello,
    I want to localize my chart legends as well. currently, I am doing them using the angular controller which is a hack and very ugly and also it does not reflect unless the page is refreshed. is there any better way to translate the chart legends? a way to retrieve legend labels from JSON file?

    Thanks in advance,
    Praveen

    #21927

    Vishwas R
    Keymaster

    @prkashyap,

    CanvasJS supports rendering any language in title, legend and other elements. You can pass the legend-text in the language you would prefer it to render and it should work fine. Please take a look at this jsfiddle which shows rendering title and legends in Japanese.

    a way to retrieve legend labels from JSON file?

    Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.