X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Faxes.js;h=81068fe95e00733e7121490fb55e2738d60557a8;hb=98eb4713efecf58b904def42d9030e61bcbb4181;hp=940fcecff66aee9c8016297bcafb32407e9a661f;hpb=beeabac2f71ae45c510b0355d0e76972083a6ca6;p=dygraphs.git diff --git a/plugins/axes.js b/plugins/axes.js index 940fcec..81068fe 100644 --- a/plugins/axes.js +++ b/plugins/axes.js @@ -33,7 +33,7 @@ axes.prototype.activate = function(g) { return { layout: this.layout, clearChart: this.clearChart, - drawChart: this.drawChart + willDrawChart: this.willDrawChart }; }; @@ -84,7 +84,7 @@ axes.prototype.clearChart = function(e) { this.detachLabels(); } -axes.prototype.drawChart = function(e) { +axes.prototype.willDrawChart = function(e) { var g = e.dygraph; if (!g.getOption('drawXAxis') && !g.getOption('drawYAxis')) return;