return {
layout: this.layout,
clearChart: this.clearChart,
- drawChart: this.drawChart
+ willDrawChart: this.willDrawChart
};
};
this.detachLabels();
}
-axes.prototype.drawChart = function(e) {
+axes.prototype.willDrawChart = function(e) {
var g = e.dygraph;
if (!g.getOption('drawXAxis') && !g.getOption('drawYAxis')) return;