Chart tooltip
Tooltip and legend content shared by every chart.
In use
Deploys
Hover or focus a bar
Variants
The panel is plain markup, so it also renders on its own. Outside a container no config is known, so keys show raw with a neutral key, and missing values show a dash.
Thursday
deploys24
rollbacks3
hotfix–
Props
formatter(value, key) formats each value; hideLabel drops the heading. Text is always ink, never the series colour.
Code
<ChartTooltip formatter={(value) => `${value} deploys`} />
// custom content: <ChartTooltip content={<MyTooltip />} /> and read colours with useChartConfig()