How to set percentage in Google Visualization Chart API

apichartsgoogle-visualizationnumber-formatting

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

Best Solution

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.