suiss/ui · Chart
Tooltip Chart Dashed
A stacked bar chart whose tooltip marks each series with a dashed outline indicator.
Tooltip Chart Dashed 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 dashed tooltip indicator, which marks each series with a dashed outline in its color. Compare it with the dot and line variants to pick the indicator that fits your design.
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-dashed.tsx:
- Update the import paths to match your project.
Usage
Set indicator on ChartTooltipContent to dashed; the same setting works on any chart. Replace chartData and the series in chartConfig to use your own data.
Notes
The tooltip opens on a preset month when the chart loads; remove defaultIndex if it should start hidden.