Description Usage Arguments Value Note Examples
Configure options for the dygraph series legend.
1 2 3 |
dygraph |
Dygraph to configure legend options for. |
show |
When to display the legend. Specify "always" to always show the legend. Specify "onmouseover" to only display it when a user mouses over the chart. Specify "follow" to have the legend show as overlay to the chart which follows the mouse. The default behavior is "auto", which results in "always" when more than one series is plotted and "onmouseover" when only a single series is plotted. |
width |
Width (in pixels) of the div which shows the legend. |
showZeroValues |
Show zero value labels in the legend. |
labelsDiv |
Show data labels in an external div, rather than on the graph. This value should be a div element id. |
labelsSeparateLines |
Put a <br/> between lines in the label string.
Often used in conjunction with |
hideOnMouseOut |
Whether to hide the legend when the mouse leaves the
chart area. This option applies when |
A dygraph with customized legend options
See the online documentation for additional details and examples.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.