Always set milliseconds to zero when computing date tick placement, so that resulting...
[dygraphs.git] / plugins / legend.js
index 9e4650e..09ed2a0 100644 (file)
@@ -59,7 +59,7 @@ legend.prototype.activate = function(g, r) {
       "zIndex": 10,
       "width": divWidth + "px",
       "top": "0px",
-      "right": "2px",
+      "left": (g.size().width - divWidth - 2) + "px",
       "background": "white",
       "lineHeight": "normal",
       "textAlign": "left",