charton API / @chart-on/ui / index / PointerTooltipOptions
Interface: PointerTooltipOptions
Defined in: ui/src/pointer-tooltip.ts:6
Options for createPointerTooltip: its content, how long to wait before showing, and whether it follows the crosshair or sits at the top.
Properties
anchor?
optionalanchor?:"top"|"pointer"
Defined in: ui/src/pointer-tooltip.ts:16
pointer sits level with the crosshair; top pins it to the top of the plot. Default pointer.
delay?
optionaldelay?:number
Defined in: ui/src/pointer-tooltip.ts:14
Wait this long (ms) after the crosshair appears before showing. Default 0.
format?
optionalformat?: (values) =>string|Node|null
Defined in: ui/src/pointer-tooltip.ts:12
Content for the bar under the crosshair: text, an element, or null to show nothing there. Default: the time, then each visible series' values as the legend formats them.
Parameters
values
Returns
string | Node | null