On branch feature_New_plugin_interface_afterScaleUpdate
Changes to be committed:
modified: dist/Chart.bundle.js
modified: dist/Chart.bundle.min.js
#On branch feature_New_plugin_interface_afterScaleUpdate
#Changes to be committed:
* Start of initialization
* End of initialization
* Start of update
+* After the chart scales have calculated
* End of update (before render occurs)
* Start of draw
* End of draw
afterInit: function(chartInstance) { },
beforeUpdate: function(chartInstance) { },
+ afterScaleUpdate: 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
Chart.layoutService.update(this, this.chart.width, this.chart.height);
+ // Apply changes to the dataets that require the scales to have been calculated i.e BorderColor chages
+ Chart.pluginService.notifyPlugins('afterScaleUpdate', [this]);
+
// Can only reset the new controllers after the scales have been updated
helpers.each(newControllers, function(controller) {
controller.reset();