Skip to content

react-chartist 1.0.1

Latest

Choose a tag to compare

@fraserxu fraserxu released this 22 Oct 01:02

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 with ERESOLVE next to Chartist 2 (#114)
  • Documentation for Chartist 2's opt-in compat plugin, which 1.x-style draw/created listeners need: options={{ plugins: [compat] }} with import { 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