Dygraph.Plugins.ChartLabels = (function() {
// TODO(danvk): move chart label options out of dygraphs and into the plugin.
+// TODO(danvk): only tear down & rebuild the DIVs when it's necessary.
var chart_labels = function() {
this.title_div_ = null;
return {
layout: this.layout,
// clearChart: this.clearChart,
- drawChart: this.drawChart
+ didDrawChart: this.didDrawChart
};
};
}
};
-chart_labels.prototype.drawChart = function(e) {
+chart_labels.prototype.didDrawChart = function(e) {
var g = e.dygraph;
if (this.title_div_) {
this.title_div_.children[0].innerHTML = g.getOption('title');