KodeKarsa UI

Charts

Sparkline

A smooth trend line with no axes. Decorative, or readable point by point when given a label.

src/components/charts/sparkline.tsxNo ui-sdk

Readable point by point

Memuat

Inside a list

Memuat

Import

tsx
import { Sparkline } from "@/components/charts/sparkline";

Guidelines

  • Without label, the line is hidden from screen readers; write the numbers nearby.
  • Give it label and labels when each point is worth reading, as in a stat card.