suiss/ui · Chart
Tooltip Chart No Label
A stacked bar chart whose tooltip omits the category heading and shows only the series rows.
Tooltip Chart No Label is an open-source chart from suiss/ui for React. The @esuiss/ui CLI copies its source into your project, so you own the code.
A stacked bar chart whose tooltip drops the category heading and shows only the series rows. Use it when the hovered category is obvious from the axis and you want a smaller tooltip.
Installation
CLI
Works in any project with a components.json. See Installation for the one-line registry setup. Or use the suiss/ui CLI:
Manual
- Install the dependencies:
-
Copy the source into
components/charts/tooltip-chart-no-label.tsx:
- Update the import paths to match your project.
Usage
Set hideLabel on ChartTooltipContent. Replace chartData and the series in chartConfig with your own.
Notes
The tooltip opens on a preset month when the chart loads; remove defaultIndex if it should start hidden.