suiss/ui · Chart
Tooltip Chart Dot
A stacked bar chart showing the default tooltip indicator, a small colored square for each series.
Tooltip Chart Dot 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 that shows the default tooltip indicator, a small colored square beside each series. It is the most compact indicator and the one you get without setting anything.
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-dot.tsx:
- Update the import paths to match your project.
Usage
Leave indicator unset or set it to dot 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.