From 077e41ff2b66f27bf3526aec5d2e1cdb0b217429 Mon Sep 17 00:00:00 2001 From: Jason Hollingsworth Date: Thu, 25 Oct 2012 10:32:51 -0500 Subject: [PATCH] Fixed an issue with the chart title not being visible in IE8 and before. This does the same thing as the axes labels (sets the zIndex to 10), to ensure it displays on top of the canvas. --- plugins/chart-labels.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/chart-labels.js b/plugins/chart-labels.js index 34775fc..2aaae26 100644 --- a/plugins/chart-labels.js +++ b/plugins/chart-labels.js @@ -123,6 +123,7 @@ chart_labels.prototype.layout = function(e) { 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'; -- 2.7.4