Replace ' ' with ' ', so that the legend works in XHTML pages as well
authoryankee <yzeugs@cipher-code.de>
Wed, 20 Aug 2014 14:09:10 +0000 (16:09 +0200)
committeryankee <yzeugs@cipher-code.de>
Wed, 20 Aug 2014 14:09:10 +0000 (16:09 +0200)
plugins/legend.js

index 2ff9398..fb93b41 100644 (file)
@@ -249,7 +249,7 @@ generateLegendHTML = function(g, x, sel_points, oneEmWidth) {
 
     // TODO(danvk): use a template string here and make it an attribute.
     html += "<span" + cls + ">" + " <b><span style='color: " + series.color + ";'>" +
-        escapeHTML(pt.name) + "</span></b>:&nbsp;" + yval + "</span>";
+        escapeHTML(pt.name) + "</span></b>:&#160;" + yval + "</span>";
   }
   return html;
 };