Merge pull request #143 from klausw-g/plugin-tweaks
[dygraphs.git] / plugins / legend.js
index 6e2e555..df2ce1e 100644 (file)
@@ -61,7 +61,7 @@ legend.prototype.activate = function(g) {
       "zIndex": 10,
       "width": divWidth + "px",
       "top": "0px",
-      "right": "2px",
+      "left": (g.size().width - divWidth - 2) + "px",
       "background": "white",
       "lineHeight": "normal",
       "textAlign": "left",