somonus/react-native-echarts
Fork: 309 Star: 722 (更新于 2024-10-28 02:24:49)
license: MIT
Language: HTML .
Echarts for react-native. The react-naitve chart.
最后发布版本: 0.5.0 ( 2018-12-20 16:57:31)
native-echarts
install
$ npm install native-echarts --save
Usage
The Usage is complete consistent with Echarts
component props:
- option (object): The option for echarts: Documentation。
- width (number): The width of the chart. The default value is the outer container width.
- height (number): The height of the chart. The default value is 400.
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Echarts from 'native-echarts';
export default class app extends Component {
render() {
const option = {
title: {
text: 'ECharts demo'
},
tooltip: {},
legend: {
data:['销量']
},
xAxis: {
data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
},
yAxis: {},
series: [{
name: '销量',
type: 'bar',
data: [5, 20, 36, 10, 10, 20]
}]
};
return (
<Echarts option={option} height={300} />
);
}
}
AppRegistry.registerComponent('app', () => app);
##Example
run demo
cd example
npm install
npm start
IOS
Open the xcode project in the ios directory and click run
screenshots:
Android
Open the Android project in the android directory with Android Studio and click run.
screenshots:
License
native-echarts is released under the MIT license.
最近版本更新:(数据更新于 2024-10-03 17:04:49)
2018-12-20 16:57:31 0.5.0
2016-11-03 10:48:18 0.3.0
2016-11-01 17:33:14 0.2.0
2016-10-21 15:57:02 0.1.1
somonus/react-native-echarts同语言 HTML最近更新仓库
2024-11-05 08:24:08 windmill-labs/windmill
2024-10-31 19:20:40 squidfunk/mkdocs-material
2024-10-26 01:50:50 nova-video-player/aos-AVP
2024-10-25 17:35:07 Tencent/tdesign-miniprogram
2024-09-30 10:57:08 mlick/libcimbar-web
2024-09-13 22:39:58 Unstructured-IO/unstructured