How do you set percentage in Google Visualization Chart API?

B Seven picture B Seven · Jun 25, 2011 · Viewed 40k times · Source

How do you set the vertical axis to display percent such as 25%, 50%, 75%, 100%?

Answer

jroi_web picture jroi_web · Aug 22, 2014
var options = {
        title: 'Chart Title',
        vAxis: {
            minValue: 0,
            maxValue: 100,
            format: '#\'%\''
        } 
    };

Try escaping the % sign. I've used this to just append the % sign in the y axis.