Anyone has this problem too? Any ideas?

On Dec 11, 9:44 am, chozero <[email protected]> wrote:
> 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);

--

You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.


Reply via email to