Skip to main content
The content section sets the text around the chart — title, subtitle, caption and source attribution. Each text slot has a companion visibility flag, so a value can be kept while hidden.

Slots

title
string | RichText
The chart’s headline text. Pair with isTitleVisible.
subtitle
string | RichText
A secondary line under the title. Pair with isSubtitleVisible.
caption
string | RichText
A note shown beneath the chart. Pair with isCaptionVisible.
source
{ label?: string; url?: string }
Data-source attribution shown under the caption. Pair with isSourceVisible.
Each slot has a matching isXVisible boolean (isTitleVisible, isSubtitleVisible, isCaptionVisible, isSourceVisible). Setting text alone does not show it — the visibility flag is what renders it.

Rich text

Any text slot accepts either a plain string or a rich-text node (a TipTap-compatible document), which lets you mix colors, weights and headings within a title:
Recognised marks include textStyle (with color, font, fontSize), plus standard bold/italic/underline. Rich text requires the TipTap peer packages.