[visualization-api] Re: Swiss currencies

2016-02-19 Thread Gibono
Ok Thank you Le vendredi 19 février 2016 15:55:05 UTC+1, Gibono a écrit : > > 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

[visualization-api] Swiss currencies

2016-02-19 Thread Gibono
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(drawCh

Re: [visualization-api] Dynamic options series reference

2016-02-18 Thread Gibono
Found it: data.getNumberOfColumns() Le jeudi 18 février 2016 15:55:30 UTC+1, Gibono a écrit : > > Uhm I'me greedy... > > Is there a way to get the last index? > > Le jeudi 18 février 2016 15:52:58 UTC+1, Gibono a écrit : >> >> Works like a charm. >> >

Re: [visualization-api] Dynamic options series reference

2016-02-18 Thread Gibono
Uhm I'me greedy... Is there a way to get the last index? Le jeudi 18 février 2016 15:52:58 UTC+1, Gibono a écrit : > > Works like a charm. > > THANKS! > > Le jeudi 18 février 2016 15:38:37 UTC+1, Daniel LaLiberte a écrit : >> >> You can't do it quite l

Re: [visualization-api] Dynamic options series reference

2016-02-18 Thread Gibono
s: > > > > var options = { >title : 'My graph', >vAxis: {title: 'CHF'}, >hAxis: {title: 'Month'}, >seriesType: 'bars', >series: {} > }; > options.series[nbYears] = {type: 'line'}; > > > On T

[visualization-api] Dynamic options series reference

2016-02-18 Thread Gibono
Hi, I've got a dynamic DataTable (the number of columns is not fix => database related). Here is an exemple of the dataTable: { "cols": [{ "id": "Month", "label": "Month", "type": "string" }, { "id": "2015", "label": "2015", "type": "number" }, { "id": "Average", "label": "Average",