Home Forums Chart Support Localization of chart legends

Localization of chart legends

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

    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

    @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.