Description Usage Arguments Value Note Examples
Configure options for data series mouse-over highlighting. Note that highlighting is always enabled for dygraphs so this function is used to customize rather than enable highlighting.
1 2 3 | dyHighlight(dygraph, highlightCircleSize = 3,
highlightSeriesBackgroundAlpha = 0.5, highlightSeriesOpts = list(),
hideOnMouseOut = TRUE)
|
dygraph |
Dygraph to configure highlighting behavior for. |
highlightCircleSize |
The size in pixels of the dot drawn over highlighted points. |
highlightSeriesBackgroundAlpha |
Fade the background while highlighting series. 1=fully visible background (disable fading), 0=hidden background (show highlighted series only). |
highlightSeriesOpts |
When set, the options from this list are applied
to the series closest to the mouse pointer for interactive highlighting.
Example: list(strokeWidth = 3). See the documentation on
|
hideOnMouseOut |
Whether to hide the highlighting effects when the mouse
leaves the chart area. Note that this also affects the hiding of the
|
A dygraph with customized highlighting options
See the online documentation for additional details and examples.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.