Forcing Visualization Language Selection
Visualizations can support localized versions. Usually this means that fixed strings displayed by the visualization will be translated into other languages (for example, instead of "Close" it would display "Fermer"), but it is possible that a visualization could also support more advanced localization, such as displaying numbers in different formats used by different languages, or even different designs or color schemes.
Normally, a visualization that supports localization detects the language settings of your browser, and changes languages appropriately. However, you can override the browser choice by specifying a language in your google.load() method as shown here (this will load the French version of the Motion Chart visualization):
google.load('visualization', '1', {'packages': ['motionchart'], 'language' : 'fr'})
The language property is a two-letter ISO 639-1 language code.
If a visualization does not support the language detected in the browser, or specified by google.load(), it will usually default to English.
Partager