Skip to content
Charts55Components12Visuals14ASCII45
GitHubGet startedGet started
  • All charts
  • Getting started

Trends3

  • Area
  • Line
  • Combo

Comparison4

  • Bar
  • Horizontal bar
  • Slope
  • RangeNew

Part of a whole4

  • Radial
  • Treemap
  • Funnel
  • Sankey

KPIs3

  • Stat cards
  • Progress
  • Activity ring

Patterns5

  • Heatmap
  • Cohort retentionNew
  • Scatter
  • Radar
  • Box plotNew

Cool23New

  • Chord loom
  • Rank ribbons
  • Event helix
  • Contour islands
  • Parallel ribbons
  • Sunburst terraces
  • Cluster constellation
  • Ternary prism
  • Wind rose
  • Marimekko blocks
  • Intersection towers
  • Horizon folds
  • Circle archipelago
  • Helix ribbons
  • Voxel cloud
  • Arc bridges
  • Terrain
  • Hex city
  • Voxel waffle
  • Skyline
  • Block city
  • Ridgeline
  • Spiral year

Finance13New

  • Candlestick
  • Indicators
  • Price
  • Depth
  • Order book
  • Portfolio
  • Watchlist
  • Market map
  • Volume profile
  • Monthly returns
  • Earnings
  • Yield curve
  • Options payoff

Customize10

  • Colors
  • Surfaces
  • Backgrounds
  • 3DNew
  • Axes
  • LegendsNew
  • Hover
  • Numbers
  • Loading
  • Empty

Features5New

  • Sync hover
  • Pin
  • Compare
  • Targets & forecasts
  • Performance

Reference2

  • API reference
  • Motion & accessibility
API reference/Core

Runtime and layout

Compose a Cartesian chart yourself: one root, one plot, and the marks inside it.

  • Chart
  • ChartPlot
  • useCartesianChartModel
  • useChartState

createCartesianChartModel or useCartesianChartModel keeps an accepted data frame, source rows, measurements and interaction state together. Pass the model to Chart, ChartPlot and bound marks. A plot supplies measured geometry; its height, compact height and margins live on ChartPlot. One active plot is supported per chart root.

Model actions work before a plot mounts and after it unmounts. A controlled model usescontrol inputs and request callbacks: calling pin, changing visible series or comparing a range requests a change; state updates when the owner supplies the resolved value. summarize queries accepted rows with an explicit measure, scope, aggregation and missing-value policy.

TypeScript

const model = useCartesianChartModel({ data: rows, x, y, series });
const inspection = useChartState(model, state => state.inspection);
const comparison = useChartState(model, state => state.comparison);

<Chart model={model} aria-label="Revenue" compare>
  <header>{inspection?.formattedX ?? 'Revenue'}</header>
  <ChartPlot model={model} height={300}>
    <Line model={model} series="revenue" />
  </ChartPlot>
  <Legend model={model} />
</Chart>
PreviousCardsNextData and identity