Welcome Guest Search | Active Topics |

i18n - decimal separator
CodeDonkey
#1 Posted : Monday, August 19, 2013 1:08:44 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/19/2013(UTC)
Posts: 1

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,
I have a project that is internationalized, and we are reviewing jqChart to see if it will fit with our needs.

The one problem I'm having right now is that we are outputting some decimal figures (Which represent money), and using label formatting to format the amounts, and while I've figured how to change the currency symbol, I cannot seem to get the decimal separator to change.

In one of the cultures we translate to (Brazilian Portuguese) the decimal separator is "," instead of "." So instead of saying 15.99 they would say 15,99

my formatString for this axis looks like this:
R$ %0.2f

I have looked at sprintf documentation to look to see how have this use comma instead of period, but nothing I try works.

Anyone have any great ideas?

Thanks,

Steve
Dragan
#2 Posted : Monday, August 19, 2013 1:17:27 PM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
You can use customize the appearance of the axis labels with 'axisLabelCreating' event:
http://www.jqchart.com/jquery/chart/CustomizingChart/AxisLabelCreatingEvent
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.053 seconds.