score:6

Accepted answer

if you want to add %after the values of the y-axis you can do it using scales in your chart configuration. your code will look like this:

var mybarchart = new chart($("#mycanvas"), {
    type: 'bar',
    data: data,
    maintainaspectratio: false,
    options: {
        scales: {
            yaxes: [{
                ticks: {
                    // create scientific notation labels
                    callback: function(value, index, values) {
                        return value + ' %';
                    }
                }
            }]
        }
    }
});

documentation about scales

fiddle updated with the %: fiddle

and if you want to modify the text displayed in the tooltips you can easily change it using callback. you can find more information here tooltip callbacks


Related Query

More Query from same tag