File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,13 @@ $ npm install native-echarts --save
6
6
7
7
## Usage
8
8
9
- ###用法
9
+ The Usage is complete consistent with Echarts
10
10
11
- 用法完全和echarts一致,将echarts的option传给组件。option详细属性详见 [ 文档 ] ( http://echarts.baidu.com/option.html#title )
11
+ component props:
12
12
13
- native-echarts共暴露了三个属性:
14
-
15
- * * option* (object): echarts图表的配置项,无默认值。
16
- * * width* (number): 图表的宽度,默认值为其外层容器的宽度。
17
- * * height* (number): 图表的高度,默认值为400。
13
+ * * option* (object): The option for echarts: [ Documentation] ( http://echarts.baidu.com/option.html#title ) 。
14
+ * * width* (number): The width of the chart. The default value is the outer container width.
15
+ * * height* (number): The height of the chart. The default value is 400.
18
16
19
17
20
18
``` js
@@ -31,7 +29,7 @@ export default class app extends Component {
31
29
render () {
32
30
const option = {
33
31
title: {
34
- text: ' ECharts 入门示例 '
32
+ text: ' ECharts demo '
35
33
},
36
34
tooltip: {},
37
35
legend: {
@@ -71,17 +69,17 @@ npm start
71
69
72
70
### IOS
73
71
74
- 打开ios目录下的xcode工程,点击run
72
+ Open the xcode project in the ios directory and click run
75
73
76
- 运行截图 :
74
+ screenshots :
77
75
78
76
![ image] ( https://github.com/somonus/react-native-echarts/blob/master/example/demoIOS.png )
79
77
80
78
### Android
81
79
82
- 使用Android studio打开Android目录,点击run
80
+ Open the Android project in the android directory with Android Studio and click run.
83
81
84
- 运行截图 :
82
+ screenshots :
85
83
86
84
![ image] ( https://github.com/somonus/react-native-echarts/blob/master/example/demoAndroid.png )
87
85
Original file line number Diff line number Diff line change 15
15
},
16
16
"keywords" : [
17
17
" react-native" ,
18
- " echarts"
18
+ " echarts" ,
19
+ " chart" ,
20
+ " charts"
19
21
],
20
22
"author" : " somonus" ,
21
23
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments