Skip to content

Commit b323b92

Browse files
committed
docs: fix the versions of Chart.js in the README
v6 works with Chart.js v4 and needs chart.js ^4.1.1, while the README said it supports Chart.js v3 too and recommended chart.js ^4.0.0. Chart.js v3 needs react-chartjs-2 v4, so the README links the guide for it.
1 parent 87b8343 commit b323b92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
React components for <a href="https://www.chartjs.org">Chart.js</a>, the most popular charting library.
66

7-
Supports Chart.js v4 and v3.
7+
Supports Chart.js v4. For Chart.js v3, see [Using with Chart.js v3](https://react-chartjs-2.js.org/docs/chartjs-v3/).
88

99
[![NPM version][npm]][npm-url]
1010
[![Downloads][downloads]][downloads-url]
@@ -48,7 +48,7 @@ yarn add react-chartjs-2 chart.js
4848
npm i react-chartjs-2 chart.js
4949
```
5050

51-
We recommend using `chart.js@^4.0.0`.
51+
react-chartjs-2 needs `chart.js@^4.1.1`.
5252

5353
Then, import and use individual components:
5454

0 commit comments

Comments
 (0)