Swiss currencies

19 views
Skip to first unread message

Gibono

unread,
Feb 19, 2016, 9:55:05 AM2/19/16
to Google Visualization API
Hi,
I'm trying to display an amount of swiss francs, but I don't find the langage associated to Swiss Francs. How can I change the local currency to swiss francs?

Here is my code:

google.charts.load('current', {'packages':['corechart'], 'language': 'CH'});
google
.charts.setOnLoadCallback(drawChart);

 
function drawChart() {
 
var jsonData1 = $.ajax({
 url
: "xxxxx.php",
 dataType
: "json",
 async
: false
 
}).responseText;
 
var data1 = new google.visualization.DataTable(jsonData1);

 
var options1 = {
 title
: 'Total money',
 vAxis
: {title: 'CHF', format: 'currency'},
 hAxis
: {title: 'Month'},
 seriesType
: 'bars',
 series
: {}
 
};

 options1
.series[data1.getNumberOfColumns()-2] = {type: 'line'};

 
var chart = new google.visualization.ComboChart(document.getElementById('chart'));
 
chart.draw(data1, options1);  
}

Thank you very much for the answers.

Sergey Grabkovsky

unread,
Feb 19, 2016, 10:27:19 AM2/19/16
to Google Visualization API
Hi,

We don't actually support the 'ch' locale in Google Charts. Your best bet to get this working today would probably be a custom formatting string.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/00cefd00-d676-4746-9723-f106732125f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

unnamed.gif

Sergey Grabkovsky

Software Engineer

Google, Inc

gra...@google.com


Gibono

unread,
Feb 19, 2016, 10:32:14 AM2/19/16
to Google Visualization API
Ok Thank you
Reply all
Reply to author
Forward
0 new messages