Skip to main content

Overview

The Chart component wraps Recharts primitives with the DevReady visual language. It ships with line, barStandard, barPairs, barSplit, pie, pieFull, and pieRing variants plus reusable tooltip/legend helpers and utilities such as selectEvenlySpacedItems.

Basic Usage

Formatting

Pass formatter callbacks to customise the tooltip and axes.

Bar Variants

Stacked (barStandard)

Combine bars with optional line overlays. The selectEvenlySpacedItems helper keeps X axis ticks legible for large datasets, and the showYAxis flag lets you match different layouts.

Paired (barPairs)

Render side-by-side bars for quick comparisons between two categories.

Split (barSplit)

Visualise positive and negative contributions sharing a zero baseline.

Full Pie (pieFull)

Fill the entire circle while keeping the same API as the doughnut variant.

Ring (pieRing)

Display multiple progress rings with a shared center label.

Pie Variant

Render doughnut and pie charts with themed legends and tooltips.

Props

Line variant

Bar variant ("barStandard" & "barPairs")

Pie variant ("pie" & "pieFull")

Ring variant ("pieRing")