WelcomeForumsCommunityannoFormatString To display UK pound symbol instead of $

Wijmo Team Member
keyzo posted on June 25, 2012 at 8:59 am link

I’m currently using the code below – it’s formatting the currency in dollars, How do I switch that to UK GBP ?

$(“#wijbarchart”).wijbarchart({
showChartLabels:false,
stacked: true,
horizontal: false,
axis: {
y: {
text: “”,
annoFormatString: ‘c0′
},
x: {
text: “”
}
},

Wijmo Team Member
keyzo posted on June 25, 2012 at 10:57 am link

Ah managed to suss it out, I just set the symbol by using this.

Globalize.culture().numberFormat.currency.symbol=”\u00A3″;

Answer
Wijmo Team Member
dail posted on June 26, 2012 at 4:01 am link

Add the culture option :
culture: “en-GB”
Add the globalize.cultures.js reference which contains the GB’s globalize settings.

Answer

This topic has 2 voices, contains 2 replies, and was last updated by  dail 332 days ago.

You must be logged in to reply to this topic.