beforeUpdate: function(chartInstance) { },
afterUpdate: function(chartInstance) { },
+ // This is called at the start of a render. It is only called once, even if the animation will run for a number of frames. Use beforeDraw or afterDraw
+ // to do something on each animation frame
+ beforeRender: function(chartInstance) { },
+
// Easing is for animation
beforeDraw: function(chartInstance, easing) { },
afterDraw: function(chartInstance, easing) { }
},
render: function render(duration, lazy) {
+ Chart.pluginService.notifyPlugins('beforeRender', [this]);
if (this.options.animation && ((typeof duration !== 'undefined' && duration !== 0) || (typeof duration === 'undefined' && this.options.animation.duration !== 0))) {
var animation = new Chart.Animation();