Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set google chart API locale

I want to set the language of the google chart API to a value. It currently uses the language of the browser visiting the page. How do I set it to the language of my application?

like image 421
murtho Avatar asked Jan 28 '14 07:01

murtho


People also ask

Is Google Charts API free?

Google chart tools are powerful, simple to use, and free. Try out our rich gallery of interactive charts and data tools.

What is arrayToDataTable?

arrayToDataTable()This helper function creates and populates a DataTable using a single call.


1 Answers

See Google docs Loading Charts using a specific locale.

By default, the Google Chart libraries are loaded with the locale specified by the browser. You can override this default by explicitly specifying a locale in the loading parameters.

For example:

google.load('visualization', '1', {'packages':['corechart'], 'language': 'ja'});
like image 93
Anto Jurković Avatar answered Sep 23 '22 00:09

Anto Jurković