Piechart - percentage value display based on multi language
Posted: Thu Aug 11, 2016 4:54 pm
We have created a pie chart and decimal values are assigned to pie chart for chart generation . The problem is that the decimal number format is not changed when I switch from one language to another language. For example the value should change and display on segment from 4.5 to 4,5(German language)
chart1.data.values = [a1, a2, a3];
chart1.data.labels = [a1.toLocaleString(), a2.toLocaleString(), a3.toLocaleString()];
Also the label value is not changed based on language setting. I used javascript function "toLocalString()" for formatting decimal/number values based on culture.
Is there any way to format the number and display it on chart based on multilanguage?
chart1.data.values = [a1, a2, a3];
chart1.data.labels = [a1.toLocaleString(), a2.toLocaleString(), a3.toLocaleString()];
Also the label value is not changed based on language setting. I used javascript function "toLocalString()" for formatting decimal/number values based on culture.
Is there any way to format the number and display it on chart based on multilanguage?