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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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'});