In below chart I am trying to make all text to show in localized format. Values on category axis and values on tooltip also needs in localized. Is there any way to convert numbers into localized format or I need to pass localized numbers and text as chart values
1 Answer, 1 is accepted
0
Vessy
Telerik team
answered on 14 Feb 2023, 05:44 PM
Hello, Ashwini,
The Chart globalization can be handled out of the box, but if you want to translate its strings as well, you will need to bound the chart to the translated data as per your assumption:
For example, you can update the categories data based on the chosen language in a similar way:
Thank you for this information, it is useful. For Y-axis values I am trying to be localized, I wants to know is there any way to convert numbers also using any library, I wants to confirm one more thing if we converted numbers other than English, chart will get plotted properly?
Vessy
Telerik team
commented on 15 Feb 2023, 05:27 PM
Hi, Ashwini,
You can set the format to the ValuAxis labels in the same way like shown in the series labels here:
In case you want to use entirely different string translations, you can change the default values through the ValueAxisLabels content function in a similar manner: