better error with non-existent labelsDiv
[dygraphs.git] / dygraph-canvas.js
index b4004e0..522629c 100644 (file)
@@ -658,7 +658,7 @@ DygraphCanvasRenderer.prototype._renderChartLabels = function() {
     div.style.width = this.area.w + 'px';
     div.style.height = this.attr_('titleHeight') + 'px';
     div.style.textAlign = 'center';
-    div.style.fontSize = (this.attr_('titleHeight') - 2) + 'px';
+    div.style.fontSize = (this.attr_('titleHeight') - 8) + 'px';
     div.style.fontWeight = 'bold';
     var class_div = document.createElement("div");
     class_div.className = 'dygraph-label dygraph-title';