i can not show arabic-indic numbers in google char

2019-09-21 06:47发布

问题:

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.