* Copyright 2012 Dan Vanderkam (danvdk@gmail.com)
* MIT-licensed (http://opensource.org/licenses/MIT)
*/
+/*global Dygraph:false */
+
Dygraph.Plugins.ChartLabels = (function() {
"use strict";
inner_div.appendChild(class_div);
div.appendChild(inner_div);
return div;
-}
+};
chart_labels.prototype.layout = function(e) {
this.detachLabels_();
this.title_div_.style.textAlign = 'center';
this.title_div_.style.fontSize = (g.getOption('titleHeight') - 8) + 'px';
this.title_div_.style.fontWeight = 'bold';
+ this.title_div_.style.zIndex = 10;
var class_div = document.createElement("div");
class_div.className = 'dygraph-label dygraph-title';
};
chart_labels.prototype.destroy = function() {
- detachLabels();
+ this.detachLabels_();
};