score:2

Accepted answer

you can change the configuration for tooltip in options. in tooltip, we have callback object. in which, you set the title to a custom function that returns the title you want to give to the tooltip.
[sample-code]

var chartinstancehovermodenearest = new chart(ctx, {
            type: 'bar',
            data: data,
            options:{
                events:["click"],
                title : {
                    display : true
                },
                scales: {
                    xaxes: [{
                        categoryspacing: 0
                    }]
                },
                tooltips: {
                    enabled: true,
                    callbacks : {
                        title : function(){
                            return "your custom title";
                        },
                        label : function(){
                            return "";
                        }   
                    }
                }
            }
        });

below are the methods in callback object. if you want to extend more you can override these methods to give custom functionality

callbacks : {
    afterbody:(),
    afterfooter:(),
    afterlabel:(),
    aftertitle:(),
    beforebody:(),
    beforefooter:(),
    beforelabel:(),
    beforetitle:(),
    footer:(),
    label:(tooltipitem, data),
    labelcolor:(tooltipitem, chartinstance),
    title:(tooltipitems, data)
}

Related Query