add afterDatasetDraw in correct place

This commit is contained in:
Evert Timberg 2016-06-01 07:18:27 -04:00
parent b96fdcaf85
commit 10f01088e4

View File

@ -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