Is there a way to specify the decimal separator in Google Charts?
By default it seems to be based on the locale, however the need I have is to have the decimal separator to be a "dot" rather than the comma for some locales (my users are in a locale where comma as decimal separator is the default, but considered old-fashioned/obsolete)
This would be for all numbers, from axis labels to tooltips. The rest of the locale options would be unchanged.
Best Answer
Google Visualization API provides formatters that can be used to reformat data in a visualization
According to NumberFormat:
The below example demonstrates how to apply formatter to
Salary
column in order to render its value using.
symbol (decimalSymbol
andgroupingSymbol
properties of NumberFormat object are used for that purpose)Update
According to Customizing Axes you can control the formatting of label numbers with
hAxis.format
andvAxis.format