i can not show arabic-indic numbers in google chart

好久不见. 提交于 2019-12-25 17:44:56

问题


is it possiable to format the vaxis in google chart to arabic-indic this is the officially documentation : Google chart

however i looked through the whole documentation i did not find anything

i have no problem with xaxis the problem with vertical , i need them in format like ١،٢،٣...


回答1:


There is a solution, but you'll have to use an undocumented feature, which will be documented at some point. You'll need to make this call sometime before you draw your chart.

   google.visualization.NumberFormat.useNativeCharactersIfAvailable(true);

This works with material charts prior to v46, and also in classic charts starting with v46. See this example: https://jsfiddle.net/dlaliberte/6k8vdgz7/

You may see some problems depending on what formatting options you also specify.



来源:https://stackoverflow.com/questions/46423807/i-can-not-show-arabic-indic-numbers-in-google-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!