Line Chart

Lines on a shared axis that show how one or more measures rise and fall over time or ordered steps.

UI SkillbookSiteplane docsSiteplane UI 1.8.1
Works withClaude CodeCodexCursorOpenCodeUniversal
Install

Run npx uiskillbook get siteplane-line-chart and follow the Siteplane Line Chart skill it prints for this task.

Paste this into your agent.

Line Chart shows trends such as active users per month or orders per hour, with up to about five series. It supports date axes, several curve styles and a crosshair tooltip that works by keyboard.

Install

bashnpx shadcn@4.18.0 add @siteplane/line-chart

Import it from @/siteplane/components/line-chart. The project needs Siteplane UI's one-time setup first: installation.

When to pick it

  • vs Area Chart: Pick Area Chart when the size of the measure or how parts stack into a total matters.
  • vs Bar Chart: Pick Bar Chart when the categories have no natural order.
  • vs Sparkline: Pick Sparkline for a tiny axis-free trend beside a number.

Rules

  • Pass data, the x key, series and a required label.
  • Use Date objects at midnight UTC for a time axis; the chart treats text x values as categories.
  • Keep curve="monotone" because it never overshoots the data; use step for values that jump.
  • Write values with formatValue and set locale; missing values break the line rather than dropping to zero.
  • Use height="fill" with minHeight to fill a card's remaining height.

Reference

  • Line Chart docs, with every prop, part and example (Markdown)
  • Siteplane UI 1.8.1, Charts. Read the installed source under src/siteplane before relying on an API.

Add to your agent

Print this skill from the terminal, or connect the whole catalog over MCP. Setup guides

CLI

npx uiskillbook get siteplane-line-chart

MCP server

https://www.uiskillbook.com/mcp

Questions

Related skills

Better Colorsby jakubkrehel

OKLCH color space for web projects. Convert hex/rgb/hsl to oklch, generate palettes, check contrast, handle gamut boundaries, and theme with Tailwind v4. Triggers on oklch, color conversion, palette generation, contrast ratio, gamut, display p3, design tokens, hue drift, chroma, dark mode colors.

VisualExternalGitHub stars: 9.2K

Better Interfaceby jakubkrehel

Run a holistic interface review across accessibility, layout, writing, typography, color, and visual polish.

VisualExternalGitHub stars: 9.2K

Better Typographyby jakubkrehel

Web typography from choosing fonts to spacing, wrapping and accessibility. Use when picking or pairing typefaces, configuring variable fonts or OpenType features, setting up a type scale, styling text in components, truncating text, styling underlines, selection, placeholders or carets, or reviewing frontend code for typography. Triggers on typography, fonts, font formats, woff2, variable fonts, font-weight, opentype, font-feature-settings, letter-spacing, line-height, type scale, tabular numbers, text-wrap, truncation, line clamp, underlines, text-decoration, text selection, iOS input zoom, font smoothing, text contrast, measure, line length, text-box, smart punctuation, drop cap.

TypographyExternalGitHub stars: 9.2K

Color Contrast for Taste, Not Just Complianceby UI Skillbook

Use accessible contrast ratios as a floor, then build restrained hierarchy on top of them rather than treating them as the whole job.

Visual