Skip to content

LabeledSparkline

A sparkline in a labelled tile: the label and the series maximum above the line, “No samples” for none and “ (1 sample)” for one, since a line needs two points.

Source

import { LabeledSparkline } from "@flanksource/clicky-ui/data";

No dedicated Storybook demo is available for this component yet.

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
className string — —
format* (…) => string — Formats a value for the max label and the single-sample text.
label* string — What the line plots, for example "CPU %".
values* number[] — —