Question

I am rendering multiple independent time series with Dygraphs as described here:

http://dygraphs.com/tests/independent-series.html

The graph is rendered correctly:

graph

However I want the legend to display the value for each and every series. For now only the value of the point closest to the cursor is displayed.

How can I fix this?

Was it helpful?

Solution

There's no built-in support for this.

To dygraphs, a selection always has a specific x-value. There's no notion of a set of points with different x-values that are all selected. That being said, you could roll your own legend behavior using highlightCallback and unhighlightCallback. See this question/answer for an example of someone who did that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top