Basic Example
Scrubber can be used to provide horizontal interaction with a chart. As your mouse hovers over the chart, you will see a reference line and scrubber head following your cursor.
Loading...
Multiple Series
All series will be scrubbed by default. You can set the seriesIds
prop to restrict the scrubbing to specific series.
Loading...
Labels
Setting the label
prop for a series will display a label above the scrubber head.
Loading...
Pulsing
Setting the pulse
prop will cause the scrubber heads to pulse when the user is not actively scrubbing.
Loading...
With Imperative Handle
You can also use the imperative handle to pulse the scrubber heads programmatically.
Loading...
Disable Overlay When Scrubbing
By default, the scrubber will show an overlay to de-emphasize future data. You can hide this by setting the hideOverlay
prop to true
.
Loading...