chozero
unread,Dec 11, 2009, 4:44:36 AM12/11/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Hi everyone,
I'm using LineChart but I can't get locale settings working on Y-axis
values (would like to use 'es' locale). I can set number format on
point values and they are displayed correctly in the corresponding
tooltip, but in the y-axis they are still displayin in english locale,
with ',' (comma) as grouping symbol.
Is this a bug or still unsupported?
The code I'm using:
google.load("visualization", "1", {packages:['linechart'], 'locale':
'es'});
...
// Get the data
...
var mydata = eval(stringData);
var data = new google.visualization.DataTable();
data.addColumn('string', nomEjeX);
data.addColumn('number', nomEjeY);
data.addRows(mydata);
var formatter = new google.visualization.NumberFormat({groupingSymbol:
'.', decimalSymbol: ','});
formatter.format(data, 1);
var chart = new google.visualization.LineChart(graph_container);
var options = new Object();
options.width = 322;
options.height = 200;
options.legend = 'bottom';
options.colors = ['#ff7f00'];
options.backgroundColor = '#ffffff';
options.legendBackgroundColor = '#ffffff';
options.title = nomIndicador;
chart.draw(data, options);