Skip to content

Documentation / @ripl/charts / ChartTooltipOptions

Interface: ChartTooltipOptions ​

Defined in: charts/src/core/options.ts:402

Fully resolved chart tooltip options.

Properties ​

PropertyTypeDescriptionDefined in
backgroundColorstringFill color of the tooltip box.charts/src/core/options.ts:414
borderRadiusBorderRadiusInputCorner radius of the tooltip box, uniform or per-corner.charts/src/core/options.ts:416
fontstringCSS font shorthand for the tooltip text.charts/src/core/options.ts:410
fontColorstringColor of the tooltip text.charts/src/core/options.ts:412
maxWidthnumberMaximum tooltip width before content wraps, in pixels.charts/src/core/options.ts:418
paddingPaddingInputInner padding between the tooltip text and its box, in pixels.charts/src/core/options.ts:408
triggerChartTooltipTriggerWhat triggers the tooltip: 'item' (default) shows it when hovering an individual mark; 'axis' shows a shared tooltip listing every active series' value at the hovered category (cartesian charts).charts/src/core/options.ts:406
visiblebooleanWhether tooltips are shown on hover.charts/src/core/options.ts:404
wrapbooleanWhether long content wraps onto multiple lines.charts/src/core/options.ts:420