Kendo React Localization for charts

1 Answer 135 Views
Charts Localization
Ashwini
Top achievements
Rank 1
Iron
Iron
Ashwini asked on 13 Feb 2023, 07:16 AM
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

Sort by
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:

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ashwini
Top achievements
Rank 1
Iron
Iron
commented on 15 Feb 2023, 05:47 AM

Hello Vessy,

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:

Tags
Charts Localization
Asked by
Ashwini
Top achievements
Rank 1
Iron
Iron
Answers by
Vessy
Telerik team
Share this question
or