crispmeasured from Attio

LineChart

A responsive line chart — Attio's Reports historical charts.

Attio's historical/time-series chart: a brand line with a soft area fill over dashed horizontal gridlines, a value axis on the left, and category labels below. The line is a stretched SVG with a non-scaling stroke (stays crisp at any width); the dots are HTML so they stay round. Renders role="img" with a summary.

Preview

New companies over time Companies

Usage

import { LineChart } from "crisp";

<LineChart
  data={[
    { label: "Apr", value: 2 },
    { label: "Aug", value: 8 },
  ]}
  xAxisTitle="Created · Month"
/>;

API

PropTypeDefaultDescription
data{ label, value }[]One point per entry.
heightnumber240Overall height in px.
maxnumberautoForce the axis maximum.
ticksnumber5Number of value gridlines (includes 0).
colorstringbrandLine colour.
areabooleantrueFill the area under the line.
dotsbooleantrueDraw a dot at each point.
format(n: number) => stringFormats ticks and point values.
xAxisTitleReactNodeCentred title below the labels.

On this page