Radiant Charts is a high-performance, fully-custom canvas charting library for React. It renders entirely on an HTML5 <canvas> element — no SVG, no DOM clutter — and ships 70+ chart types out of the box.
Before you begin, make sure you have the following installed:
After installing (see the Installation guide), import RadiantChart and pass it an options object:
import { RadiantChart } from 'radiant-charts';
const data = [
{ month: 'Jan', revenue: 42000 },
{ month: 'Feb', revenue: 58000 },
{ month: 'Mar', revenue: 51000 },
{ month: 'Apr', revenue: 73000 },
];
export default function MyChart() {
return (
<RadiantChart
options={{
data,
series: [{ type: 'bar', xKey: 'month', yKey: 'revenue', fill: '#6366f1' }],
legend: { enabled: true },
}}
height={360}
/>
);
}height (number, pixels) or the CSS style prop to control chart dimensions. The canvas scales automatically on resize; no additional configuration is required.Pass a single RadiantChartOptions object. Best for dynamic dashboards where options change frequently — the chart internally diffs the options and only re-renders what changed.
Compose JSX children for a more ergonomic authoring experience. Each child (<Bar>, <Line>, <XAxis>, …) renders null and registers its config with the parent <Chart> via React Context. Under the hood it assembles the same RadiantChartOptions object and renders a single canvas.
import { Chart, Bar, XAxis, YAxis, Legend } from 'radiant-charts';
<Chart data={data}>
<XAxis dataKey="month" />
<YAxis />
<Legend />
<Bar xKey="month" yKey="revenue" fill="#6366f1" />
</Chart>