Use "legend" option with "follow" value. Hide legend on deselect.
[dygraphs.git] / tests / customLabelFollow.html
index 90c762f..9ac31bb 100644 (file)
@@ -36,7 +36,7 @@
               errorBars: true,
               labelsDivWidth: 100,
               labelsSeparateLines: true,
-              legendFollow: true,
+              legend: "follow",
               yAxisLabelWidth: 20
             }
           );