From: Matt Miller Date: Sat, 14 Jan 2012 00:14:40 +0000 (-0800) Subject: Allow unescaped HTML in labels X-Git-Tag: v1.0.0~338^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3bdf7140262d10722fbf9e596c80f9ba247d5e52;p=dygraphs.git Allow unescaped HTML in labels --- diff --git a/dygraph-canvas.js b/dygraph-canvas.js index 5e6766d..a62616a 100644 --- a/dygraph-canvas.js +++ b/dygraph-canvas.js @@ -311,7 +311,7 @@ DygraphCanvasRenderer.prototype._renderAxis = function() { inner_div.className = 'dygraph-axis-label' + ' dygraph-axis-label-' + axis + (prec_axis ? ' dygraph-axis-label-' + prec_axis : ''); - inner_div.appendChild(document.createTextNode(txt)); + inner_div.innerHTML=txt; div.appendChild(inner_div); return div; };