From: Evert Timberg Date: Wed, 1 Jun 2016 11:18:27 +0000 (-0400) Subject: add afterDatasetDraw in correct place X-Git-Tag: v2.1.5~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2680%2Fhead;p=thirdparty%2FChart.js.git add afterDatasetDraw in correct place --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 195475514..0e103d2bd 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -297,12 +297,12 @@ module.exports = function(Chart) { } }, this, true); - Chart.pluginService.notifyPlugins('afterElementDraw', [this, easingDecimal]); + Chart.pluginService.notifyPlugins('afterDatasetDraw', [this, easingDecimal]); // Finally draw the tooltip this.tooltip.transition(easingDecimal).draw(); - Chart.pluginService.notifyPlugins('afterDatasetDraw', [this, easingDecimal]); + Chart.pluginService.notifyPlugins('afterDraw', [this, easingDecimal]); }, // Get the single element that was clicked on