ibcs-react
Components

Sparkline

A tiny line / area / bar micro-chart for inline trends in cards and table cells.

A micro-chart with no axes and no labels: the shape carries the trend, the number next to it carries the value. The last point is the current value.

When to use

Inline trend context next to a number - inside a KPI card or a table cell.

Example

import { Sparkline } from "ibcs-react";

<Sparkline data={[3, 5, 4, 6, 5, 7, 8]} type="line" />
<Sparkline data={series} type="area" color="#5e8c22" />

KpiCard draws its own sparkline (sparkline + sparklineType), so reach for this component directly when you need the micro-chart somewhere else - a table cell, a list row, next to a headline in prose.

Props

Prop

Type

ibcs-react is an independent open-source library and is not affiliated with, certified by, or endorsed by the IBCS Association or ISO. It follows the IBCS® notation rules (the basis of ISO 24896); IBCS® is a registered trademark of the IBCS Association.

On this page