Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyj1022/rechartjs
React component for Chart.js
https://github.com/zyj1022/rechartjs
Last synced: 6 days ago
JSON representation
React component for Chart.js
- Host: GitHub
- URL: https://github.com/zyj1022/rechartjs
- Owner: zyj1022
- Created: 2018-07-03T10:26:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T08:02:17.000Z (over 6 years ago)
- Last Synced: 2024-04-29T05:02:34.043Z (10 months ago)
- Language: JavaScript
- Homepage: http://codeffe.com/demo/rechartjs/
- Size: 92.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rechartjs
React + Chart.js = Rechartjs
> React component for [Chart.js](http://www.chartjs.org)
## 安装方法 Installation
`npm install rechartjs chart.js --save`## 预览 [Demo](http://zyj1022.github.io/demos/rechartjs/)
## 本机运行
`npm run dev`
## 使用方法 Usage
- data(必需)
- options(可选)```
import { Bar, Line } from 'rechartjs'```
## Properties
- data: PropTypes.object.isRequired
- width: PropTypes.number
- height: PropTypes.number
- options: PropTypes.object## 图表类型 Chart type
- line
- bar
- radar
- doughnut
- pie
- polarArea
- bubble
- scatter
- horizontalBar## License
MIT License