Repository navigation
react-chartist 1.0.1 adds Chartist 2 support. No code changes are needed: the chart classes in Chartist 2 draw the same as in 1.5.
Added:
- Chartist 2 support. The peer dependency range is now
^1.5.0 || ^2.0.0, so npm no longer fails withERESOLVEnext to Chartist 2 (#114) - Documentation for Chartist 2's opt-in
compatplugin, which 1.x-styledraw/createdlisteners need:options={{ plugins: [compat] }}withimport { compat } from "chartist/compat" - Tests against Chartist 2
The npm overrides workaround for Chartist 2 is no longer needed.
Install with:
npm install react-chartist chartist
See the Chartist 2 notes at https://github.com/fraserxu/react-chartist#chartist-2