How to set google chart API language

I want to set google chart API language for value. He currently uses the browser language that visits the page. How to install it in the language of my application?

+8
google-visualization
source share
1 answer

See Google docs Downloading Charts Using a Specific Locale .

By default, Google Chart libraries load with the language version specified by the browser. You can override this default value by explicitly specifying the locale in the boot options.

For example:

google.load('visualization', '1', {'packages':['corechart'], 'language': 'ja'}); 
+23
source share

All Articles