score:12

Accepted answer

there is callback method in which you can get the array of values which will show on yaxes.
the first element of that array will be the highest value for the yaxes. below is the sample code for the same.

var yaxesticks = [];
var highestval;
var chartinstancehovermodenearest = new chart(ctx, {
                type: 'bar',
                data: data,
                options:{
                    scales: {
                        yaxes : [{
                            ticks : {
                                beginatzero : true,
                                callback : function(value,index,values){
                                    yaxesticks = values;
                                    return value;
                                }
                            }
                        }]
                    }
                }
            });

 highestval = yaxesticks[0];

Related Query