Chart Tooltip
ChartTooltip is a themed adapter for Unovis' VisTooltip. Pair it with ChartCrosshair inside an XY container for the default interactive crosshair experience. ChartTooltipContent provides the consistent label, indicator, series, and tabular-value layout used by Typlog dashboards. Pass supported Unovis primitives to targets to generate triggers automatically:
<ChartTooltip :targets="[Donut]" :content-props="{ hideLabel: true }" />Automatic targets currently support Donut (including pie charts), GroupedBar, and StackedBar. Use contentComponent and contentProps to customize the renderer. Explicit triggers are merged with generated triggers and take precedence when they use the same selector. For a custom mapping, pass a descriptor with primitive and payload:
<ChartTooltip
:targets="[{
primitive: Donut,
payload: arc => ({ browser: arc.data.browser }),
}]"
/>ChartCrosshair remains the recommended interaction for line and area charts.
Indicators
Use dot, line, dashed, or none. Icons declared in ChartConfig replace the indicator for their series.
Formatters and icons
labelFormatter formats the final heading value. The heading priority is hideLabel, explicit labelKey, the payload field configured with role: 'x', then the Unovis crosshair x value. valueFormatter receives each series value and config key.
The rendered tooltip string is generated by Vue, so text values are escaped before Unovis inserts the HTML. A custom slot can still return arbitrary markup and should only render trusted application content.
Crosshair API
ChartCrosshair forwards Unovis crosshair props while reserving template for the configured Vue content component. Use contentComponent to provide a custom renderer and contentProps for its static props.