https://github.com/mapleafgo/react-native-echarts
百度ECharts的react-native实现
https://github.com/mapleafgo/react-native-echarts
Last synced: 6 months ago
JSON representation
百度ECharts的react-native实现
- Host: GitHub
- URL: https://github.com/mapleafgo/react-native-echarts
- Owner: mapleafgo
- Created: 2018-07-02T09:24:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-27T04:02:32.000Z (over 7 years ago)
- Last Synced: 2025-10-24T18:53:35.275Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-echarts
百度ECharts的react-native实现
echarts版本4.1.0
由于,加载的是[bootcdn](http://www.bootcdn.cn/)中的在线文件,所以需在线使用,
>1.0.3引入moment支持
## 安装
- npm
```
npm i -S react-native-wk-echarts
```
- yarn
```
yarn add react-native-wk-echarts
```
## 使用
```javascript
...
import Echarts from 'react-native-echarts';
import dark from 'react-native-echarts/theme/dark.json';
...
...
```
自带一个深色、一个浅色主题,可从ECharts官网自定义主题