Skip to content Skip to sidebar Skip to footer

Showing Line Chart Vertical Axis In Another Number Language

i am trying to make vertical axis labeled in indian ١،٢،٣ and plotted in Indian too , however it seems it has no meaning for computer , since there is no native encoding for

Solution 1:

(This is a slightly modified answer to the duplicate question posted at stackoverflow.com/questions/46423807. Martijn Pieters, if you are paying attention, please delete that question instead of this one.)

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.

Post a Comment for "Showing Line Chart Vertical Axis In Another Number Language"