tooltip
};
- if (chart.notifyPlugins('beforeTooltipDraw', args) === false) {
+ if (chart.notifyPlugins('beforeTooltipDraw', {...args, cancelable: true}) === false) {
return;
}
* @param {object} options - The plugin options.
* @returns {boolean} `false` to cancel the chart tooltip drawing.
*/
- beforeTooltipDraw?(chart: Chart, args: { tooltip: Model }, options: O): boolean | void;
+ beforeTooltipDraw?(chart: Chart, args: { tooltip: Model, cancelable: true }, options: O): boolean | void;
/**
* @desc Called after drawing the `tooltip`. Note that this hook will not
* be called if the tooltip drawing has been previously cancelled.