add a (non-breaking) space between series name and value in the legend (Issue 307)
authorDan Vanderkam <danvdk@gmail.com>
Fri, 8 Feb 2013 20:41:01 +0000 (15:41 -0500)
committerDan Vanderkam <danvdk@gmail.com>
Fri, 8 Feb 2013 20:41:01 +0000 (15:41 -0500)
plugins/legend.js

index 35f30b0..7406f82 100644 (file)
@@ -245,7 +245,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 + ";'>" +
-        pt.name + "</span></b>:" + yval + "</span>";
+        pt.name + "</span></b>:&nbsp;" + yval + "</span>";
   }
   return html;
 };