Skip to content

Documentation / @ripl/charts / HoverHighlightOptions

Interface: HoverHighlightOptions ​

Defined in: charts/src/core/interaction.ts:38

Options describing how an element should respond to hover, beyond its HoverHighlightStates.

Properties ​

PropertyTypeDescriptionDefined in
anchor?() => objectResolves the tooltip anchor point (called on enter).charts/src/core/interaction.ts:55
animation() => objectResolves the highlight/restore transition timing lazily, at hover time. Resolving on each hover (rather than baking a value in when the handler is bound) keeps navigator-driven animation suppression from freezing the hover into an instant snap.charts/src/core/interaction.ts:46
content?() => stringResolves the tooltip content (called on enter).charts/src/core/interaction.ts:62
onClick?(point) => voidCalled when the element is clicked, with the pointer position.charts/src/core/interaction.ts:68
onEnter?(point) => voidCalled when the pointer enters the element, with the current pointer position.charts/src/core/interaction.ts:64
onLeave?(point) => voidCalled when the pointer leaves the element, with the last known pointer position.charts/src/core/interaction.ts:66
rendererRendererRenderer used to run the highlight/restore transitions.charts/src/core/interaction.ts:40
tooltip?HoverTooltipOptional tooltip to show/hide alongside the highlight.charts/src/core/interaction.ts:53