Skip to content
InsightCharts

Search

Search guides and components

Chart with callout

A chart with a callout beside it that states the main fact. In narrow containers the callout goes underneath.

Use when
Whenever a chart needs its meaning stated in words next to it: the standard chart-plus-interpretation unit of a report. The chart's title states the main fact with its number. The callout adds a second fact, a cause or a caveat in plain words.
Avoid when
Repeating the chart title in the callout; long narration (put prose before the chart instead); a chart that is already a small tile (the callout would outweigh it).

Preview

Monthly churn fell from 4.2% to 2.1% in 2024

Monthly customer churn, 2024

Source: Internal analytics · Illustrative data

Composition

Built from

The pieces chart with callout renders or expects in its slots.

Atoms

3

Compares a value across categories with bars from a zero baseline.

A boxed statement of fact with a short bold lead and a sentence of explanation. The tone is marked by icon and tint.

Shows how one or more values change over time or another ordered dimension.

Used in

2 templates use chart with callout.

Templates

2

A one-page summary. It has a headline that states the main finding with its number, a deck, a row of three or four key figures, one hero chart with a takeaway callout, two smaller supporting exhibits, a short list of actions and a source note.

A long article read by scrolling. It has a headline, then an ordered list of blocks in a reading column, then a source note. The blocks are prose, figures, charts with a callout, scrolly sequences, pull quotes, stat rows, small multiples and chapter breaks. Exhibits can be wider than the column.

Installation

$ pnpm dlx shadcn@latest add @insightcharts/chart-callout

The CLI copies the source into your project and needs the @insightcharts registry in components.json; see installation. With the package, import it by name:

import { ChartCallout } from "insightcharts";

Examples

Caveat on the left, boxed

Monthly churn fell from 4.1% in March to 2.9% in June 2024

Monthly customer churn, January to June 2024

Positive, aligned to the top

Monthly churn was 2.1% in December 2024

Monthly customer churn, 2024

Props

PropTypeDefaultDescription
chartrequiredSlotThe chart: a spec or a React element.
leadstringThe main fact in a few words, with its number. Shown in bold.
bodystringOne or two plain sentences that say what the fact means.
tone"neutral" | "positive" | "negative" | "accent""accent"Sets the callout's icon and tint together.
labelstringSmall label above the lead, e.g. "Takeaway" or "Caveat".
side"left" | "right""right"Side of the chart the callout sits on. Under 640px it always goes underneath.
variant"plain" | "soft" | "outline""plain"plain separates the callout with a hairline; the others box it.
align"start" | "center" | "end""center"Vertical position of the callout beside the chart.
childrenReactNodeJSX alternative to chart.
themeThemeInputTheme override, passed on to the chart and callout.
mode"auto" | "system" | "light" | "dark""auto"Colour mode.