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.

On Fri, Feb 19, 2016 at 9:55 AM Gibono <[email protected]> wrote:

> 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.
>
> --
> 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 [email protected].
> To post to this group, send email to
> [email protected].
> 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
> <https://groups.google.com/d/msgid/google-visualization-api/00cefd00-d676-4746-9723-f106732125f9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
[email protected] <[email protected]>*

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAEwwup5CmNphg950zQTuBFX4XsHmjSEC5CS2MbUMBDYSHhHYTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to