Skip to content
Component installs need the registry setup— the Base UI shadcn project, the @vegastack namespace and the Cloudflare Access service token.
VegaStack Design

charts-tooltip

The 9 tooltip chart blocks — copy-once Card compositions over the chart component and recharts, with their sample data inline.

Last updated

Tooltip - Advanced
Tooltip with custom formatter and total.

What it is

9 chart blocks in the tooltip family. Each is one Card wrapping a ChartContainer, with its sample data inline — pull one, then point it at your own series. They depend on card and chart and nothing else.

Install

npx shadcn@latest add @vegastack/chart-tooltip-advanced

Every block on this page installs the same way; swap the name.

Examples

chart-tooltip-advanced

A stacked bar chart with a legend.

Tooltip - Advanced
Tooltip with custom formatter and total.

chart-tooltip-default

A stacked bar chart with a legend.

Tooltip - Default
Default tooltip with ChartTooltipContent.

chart-tooltip-formatter

A stacked bar chart with a legend.

Tooltip - Formatter
Tooltip with custom formatter .

chart-tooltip-icons

A stacked bar chart with a legend.

Tooltip - Icons
Tooltip with icons.

chart-tooltip-indicator-line

A stacked bar chart with a legend.

Tooltip - Line Indicator
Tooltip with line indicator.

chart-tooltip-indicator-none

A stacked bar chart with a legend.

Tooltip - No Indicator
Tooltip with no indicator.

chart-tooltip-label-custom

A stacked bar chart with a legend.

Tooltip - Custom label
Tooltip with custom label from chartConfig.

chart-tooltip-label-formatter

A stacked bar chart with a legend.

Tooltip - Label Formatter
Tooltip with label formatter.

chart-tooltip-label-none

A stacked bar chart with a legend.

Tooltip - No Label
Tooltip with no label.

Do / Don't

Do
Copy the one whose shape matches your data, then replace chartData and chartConfig.
Don't
Import a chart block from the registry as a shared component — it is a starting point, not an API.

On this page