Light themes
Dark themes

Make your own

Charts

58 charts for React, drawn with Recharts in the style of the system: area, bar, line, pie, radar and radial, in every theme.

In React, a chart is a Recharts chart inside the frame of this system: the package brings the title, the colours, the tooltip, the key and the table of figures, and the stylesheet restyles the marks. Each example is one file to copy; Using the charts says how they are put together. Every figure here is invented.

Terminal
npm install recharts

Area charts

A volume over time: a 2px line over a quiet fill. One series is ink; several take the data colours and a key.

All 9 area charts

Default

One series, straight segments.

Smooth

A curve through the points.

Bar charts

Separate periods, rankings and parts of a whole: bars 24px wide at most, with 4px corners at the end that carries the value.

All 9 bar charts

Default

One series.

Peak labelled

A value axis, and the extreme named.

Line charts

A trend: 2px lines, no dots unless each reading matters. Never a second value axis.

All 8 line charts

Default

One series, straight segments.

Smooth

A curve through the points.

Pie charts

Parts of a whole at one moment, five at most, clockwise from the top and set apart by a gap.

All 5 pie charts

Pie

Whole slices and a key.

Donut

A thin ring with the total in the middle.

Radar charts

Several measures of one thing, on a hairline web. Two series at most.

All 5 radar charts

Default

One series, in ink.

Dots

A dot on each score.

Radial charts

A single share or score as a ring on a track, with its figure in the middle.

All 5 radial charts

Default

One share and its figure.

On the yellow card

The ring stays ink.

Tooltips

What the tooltip can say. Each is shown open; point at another bar to move it.

All 9 tooltips

Default

The category, then each series with its swatch.

Line mark

A line instead of a swatch.

The Chart component

One component for the six usual forms: give it labels and series, and it composes the chart, its key and its table of figures.

All 8 examples

Bars

type="bar", with the peak labelled.

Area on ink

type="area" in an ink card.

↑↓ to moveEnter to openEsc to close