Home › forums › Using CanvasJS › Localization of chart legends
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 6 months, 4 weeks ago.
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,
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.
You must be logged in to reply to this topic.