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?
Piechart - percentage value display based on multi language
Re: Piechart - percentage value display based on multi language
Hello,
We're just checking to offer an improvement here. TeeChart does a toFixed() decimal length on display values. ToFixed is not compatible with LocaleString (that doesn't respect the decimal places). I'll get back to this thread.
Regards,
Marc Meumann
We're just checking to offer an improvement here. TeeChart does a toFixed() decimal length on display values. ToFixed is not compatible with LocaleString (that doesn't respect the decimal places). I'll get back to this thread.
Regards,
Marc Meumann
Steema Support
Re: Piechart - percentage value display based on multi language
Hello,
Just for reference, note I've just posted a workaround to this issue here:
http://www.teechart.net/support/viewtop ... 081#p72081
Just for reference, note I've just posted a workaround to this issue here:
http://www.teechart.net/support/viewtop ... 081#p72081
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |