sigilUI

Line Chart

A multi-series line chart with data point nodes, grid, and axis labels.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { LineChart } from "@sigil-ui/components";

Usage

<LineChart
  series={[{ label: "Users", points: [{ label: "Mon", value: 120 }, ...] }]}
  showDots
  showGrid
  filled={false}
/>

Props

PropTypeDefaultDescription
seriesLineChartSeries[]—One or more data series to plot
widthnumber500SVG width
heightnumber250SVG height
showDotsbooleantrueShow circular nodes at each data point
showGridbooleantrueShow horizontal grid lines
showXLabelsbooleantrueShow x-axis labels
showYLabelsbooleantrueShow y-axis value labels
filledbooleanfalseFill the area under the line

Token integration

CSS VariablePurpose
--s-primaryDefault line and dot color
--s-borderGrid lines
--s-surfaceDot fill (white center)
--s-text-mutedAxis labels
--s-font-monoLabel font family