Magoo Component UI logo Magoo Component UI
← Catalog

Trade Performance Chart

performance-chart-trade organism experimental

A card-framed price-performance line chart with a timeframe selector, an optional filled area, and a direction-tinted line.

Also in: Cards

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
AAPL - Apple Inc.
$190$180$170$160
9:3011:0012:3014:0016:00
DownDay
Portfolio value
$52k$50k$48k$46k
MonTueWedThuFri

Props

NameTypeReq
title string
line_path string ✓
area_path string
y_labels array
x_labels array
ranges array
change_dir enum (up | down)

Related components

How to use

The chart is a static skeleton: line_path, area_path and the axis labels are all precomputed by the caller because the directive language has no arithmetic, and the range tabs are presentational (no behavior.js). The line and area colour follow change_dir via data-attribute variants (data-[dir=up]/data-[dir=down]); with no change_dir the line falls back to primary. For a live, interactive chart, a real charting library replaces the SVG markup and the skeleton acts as the themed card frame.

Use cases

chartcard WCAG AA SEO 30 dir: both ai-generated