Use "legend" option with "follow" value. Hide legend on deselect.
[dygraphs.git] / dygraph-options-reference.js
index 05988c4..acb0626 100644 (file)
@@ -472,13 +472,7 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
     "default": "onmouseover",
     "labels": ["Legend"],
     "type": "string",
-    "description": "When to display the legend. By default, it only appears when a user mouses over the chart. Set it to \"always\" to always display a legend of some sort."
-  },
-  "legendFollow": {
-    "default": "false",
-    "labels": ["Legend"],
-    "type": "boolean",
-    "description": "Legend follows highlighted points"
+    "description": "When to display the legend. By default, it only appears when a user mouses over the chart. Set it to \"always\" to always display a legend of some sort. When set to \"follow\", legend follows highlighted points."
   },
   "labelsShowZeroValues": {
     "default": "true",