Skip to content

Commit 2b56077

Browse files
committed
update
1 parent 9b7428c commit 2b56077

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ $ npm install native-echarts --save
66

77
## Usage
88

9-
###用法
9+
The Usage is complete consistent with Echarts
1010

11-
用法完全和echarts一致,将echarts的option传给组件。option详细属性详见[文档](http://echarts.baidu.com/option.html#title)
11+
component props:
1212

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.
1816

1917

2018
```js
@@ -31,7 +29,7 @@ export default class app extends Component {
3129
render() {
3230
const option = {
3331
title: {
34-
text: 'ECharts 入门示例'
32+
text: 'ECharts demo'
3533
},
3634
tooltip: {},
3735
legend: {
@@ -71,17 +69,17 @@ npm start
7169

7270
### IOS
7371

74-
打开ios目录下的xcode工程,点击run
72+
Open the xcode project in the ios directory and click run
7573

76-
运行截图
74+
screenshots
7775

7876
![image](https://github.com/somonus/react-native-echarts/blob/master/example/demoIOS.png)
7977

8078
### Android
8179

82-
使用Android studio打开Android目录,点击run
80+
Open the Android project in the android directory with Android Studio and click run.
8381

84-
运行截图
82+
screenshots
8583

8684
![image](https://github.com/somonus/react-native-echarts/blob/master/example/demoAndroid.png)
8785

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
},
1616
"keywords": [
1717
"react-native",
18-
"echarts"
18+
"echarts",
19+
"chart",
20+
"charts"
1921
],
2022
"author": "somonus",
2123
"license": "MIT",

0 commit comments

Comments
 (0)