Tooltip
A headless component used to customize a visualization's tooltip content and/or appearance.
Examples
Custom (basics)
Custom (D.I.Y.)
Programmatic (stateful)
API
TooltipPropsinterface
| name | description | 
|---|---|
dx? | horizontal adjustment in pixels for tooltip's position relative to focused datum ((props: HorizontalProps) => number) | number | 
dy? | vertical adjustment in pixels for tooltip's position relative to focused datum ((props: VerticalProps) => number) | number | 
keepInParent? | should the tooltip be contained within the visualization area (default:  ((props: HorizontalProps) => boolean) | boolean | 
position? | tooltip's position relative to focused datum (default:  TooltipPosition | 
xFormat? | formatting function for tooltip x values (d: any) => string | 
yFormat? | formatting function for tooltip y values (d: any) => string | 
measureFormat? | formatting function for tooltip measure labels created with an  (d: any) => string | 
content? | function that can be used to render a completely custom tooltip component based on the focused datum's individual parts (value: TooltipContent[]) => React.ReactNode | 
xAxis? | should the tooltip x value be rendered as an independent tooltip along the x axis ((x: number | string | Date | null) => React.ReactNode) | boolean | 
datum? | used for programmatically focusing Geom elements/displaying tooltip when given a meaningful subset of  Datum[] |