Allow unescaped HTML in labels
authorMatt Miller <mattm184@gmail.com>
Sat, 14 Jan 2012 00:14:40 +0000 (16:14 -0800)
committerMatt Miller <mattm184@gmail.com>
Sat, 14 Jan 2012 00:14:40 +0000 (16:14 -0800)
dygraph-canvas.js

index 5e6766d..a62616a 100644 (file)
@@ -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;
   };