如何设置谷歌图表API语言环境 [英] How to set google chart API locale
问题描述
我想将谷歌图表API的语言设置为一个值。
它目前使用浏览器访问页面的语言。
如何将其设置为我的应用程序的语言?
默认情况下,Google Chart图书馆会加载浏览器指定的区域设置。您可以通过在加载参数中显式指定区域设置来覆盖此默认设置。 pre> 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? 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:
这篇关于如何设置谷歌图表API语言环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! google.load('visualization','1',{'packages':['corechart'],'language':'ja'});
google.load('visualization', '1', {'packages':['corechart'], 'language': 'ja'});