*/
Dygraph.Plugins.ChartLabels = (function() {
+"use strict";
+
// 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 createRotatedDiv = function(g, box, axis, classes, html) {
// TODO(danvk): is this outer div actually necessary?
- div = document.createElement("div");
+ var div = document.createElement("div");
div.style.position = 'absolute';
if (axis == 1) {
// NOTE: this is cheating. Should be positioned relative to the box.
inner_div.style.top = '0px';
}
- class_div = document.createElement("div");
+ var class_div = document.createElement("div");
class_div.className = classes;
class_div.innerHTML = html;