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
import { ChartTooltipRow } from "@solarius/onset";Props
| Prop | Type | Default | Description |
|---|---|---|---|
swatch | string | — | CSS color for the dot indicator. |
label | string | — | Series name label. |
value | string | — | Formatted value for this data point. |
Example
Jan 15, 2025
CPU 34%
Memory 62%