Description
react-chartist is a small, typed React component for Chartist.js, the charting library. Version 1 is a rewrite for Chartist 1.x and for React 18 and 19, replacing the old Babel build and older Chartist constructors. A single component takes a chart type of Line, Bar or Pie, along with data, options, responsive options, event listeners and a class name. The props are a typed union, so the data and options are checked against the chosen chart type. Other attributes such as aria labels, id and style are forwarded to the chart container, so accessibility attributes can be set directly. Chartist only accepts responsive options when a chart is created, so changing that prop recreates the chart. The component exposes the current Chartist instance and its container through a ref. The README notes that charts are visual summaries, so the same values should be given as text or a table when users need exact numbers. Migrating from version 0.x requires Chartist 1.5 and React 18.2 or 19, because older React versions are not supported. The repository links to a live demo.…
Highlights
- Typed React component for Line, Bar and Pie charts
- Supports React 18 and 19 with Chartist 1.x
- Forwards aria labels and attributes to the chart
- Typed event listeners and access to the chart instance
Ratings & Reviews
No ratings yet
Be the first to rate react-chartist.
People also visit
react-chartist FAQ
What is react-chartist?
A small, typed React component for drawing Chartist.js charts, with the chart type chosen by a prop.
Which chart types are supported?
Line, Bar and Pie, selected with the type prop.
Which React versions does it support?
React 18.2 and 19. Older React versions are not supported in version 1.
How do I make charts accessible?
Add an accessible name with aria-label or aria-labelledby, and give the same information as text or a table, as the README suggests.
What changed from version 0.x?
Chartist 1.5 replaces the 0.10 API, types come from Chartist, responsive options use a camel-case name, and the ref returns the chart and element.
Is it free?
Yes. The code is public on GitHub and the listing shows no fee.
What are the best react-chartist alternatives?
Popular alternatives to react-chartist include react-chartjs, react-google-charts and react-c3js. See all react-chartist alternatives



















