ChartTooltipRow
Charts

ChartTooltipRow

Show a color swatch, label, and formatted value inside a custom chart tooltip.

ChartTooltipRow displays a color swatch, label, and formatted value inside a chart tooltip. swatch, label, and value are required strings.

Import

TSX
import { ChartTooltipRow } from "@solarius/onset";

Props

ChartTooltipRowProps props
PropTypeDefaultDescription
swatchstring—CSS color for the dot indicator.
labelstring—Series name label.
valuestring—Formatted value for this data point.

Example

Jan 15, 2025
CPU 34%
Memory 62%
ChartTooltipRow