Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/core/core.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,9 @@ module.exports = function(Chart) {
me.resize(true);
}

// Make sure controllers are built first so that each dataset is bound to an axis before the scales
// are built
// Make sure scales have IDs and are built before we build any controllers.
me.ensureScalesHaveIDs();
me.buildOrUpdateControllers();
me.buildScales();
me.updateLayout();
me.resetElements();
me.initToolTip();
me.update();

Copy link
Member

@simonbrunel simonbrunel Jan 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updateLayout() definition method should also be removed, seems only called from that line.

Expand Down Expand Up @@ -256,10 +252,6 @@ module.exports = function(Chart) {
Chart.scaleService.addScalesToLayout(this);
},

updateLayout: function() {
Chart.layoutService.update(this, this.chart.width, this.chart.height);
},

buildOrUpdateControllers: function() {
var me = this;
var types = [];
Expand Down