The tooltip plugin displays a popup with data values when the user hovers over a chart element. By default it shows all data fields associated with the hovered point. You can restrict it to a specific subset of fields, apply custom formatting functions, and control whether HTML in values is sanitized before display.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/TargetProcess/tauCharts/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Settings
An array of data field names to display in the tooltip. When omitted, all fields from the data source are shown. Specify this to limit the tooltip to relevant fields and control their display order.
When
true, HTML characters in field values are escaped before rendering. Disable this only when you intentionally want to render HTML in tooltip values and trust the data source.A map of field names to formatter definitions. Each entry controls the label and formatted value shown in the tooltip row for that field.A formatter can be either:
- A plain function
(value) => string— used as the format function; the field name is used as the label. - An object
{ label: string, format: (value) => string }— provides both a custom label and a format function.
Formatter format
Examples
Minimal — show all fields
Show specific fields with custom labels
Date and currency formatting
Events
The tooltip plugin interacts with the chart through the built-in event emitter. It fireshighlight events on chart units to synchronize hover state between the tooltip and the rendered marks. You can listen for chart events using chart.on('render', handler) after the chart is rendered.