From 1aa33b9c13d1e05dbaa6fed6783f41b50b0fe21d Mon Sep 17 00:00:00 2001
From: somonus <312677182@qq.com>
Date: Tue, 1 Nov 2016 17:31:14 +0800
Subject: [PATCH] fixed #2
---
example/package.json | 2 +-
package.json | 2 +-
src/components/Echarts/index.js | 3 +-
src/components/Echarts/renderChart.js | 40 +++--------------
src/components/Echarts/tpl.html | 65 +++++++++++++++++++++++++++
5 files changed, 75 insertions(+), 37 deletions(-)
create mode 100644 src/components/Echarts/tpl.html
diff --git a/example/package.json b/example/package.json
index fe209b72..e2a511eb 100755
--- a/example/package.json
+++ b/example/package.json
@@ -9,7 +9,7 @@
"dependencies": {
"react": "15.3.2",
"react-native": "0.35.0",
- "native-echarts": "0.1.0"
+ "native-echarts": "0.2.0"
},
"jest": {
"preset": "jest-react-native"
diff --git a/package.json b/package.json
index 4abafd8f..6041eb86 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "native-echarts",
- "version": "0.1.2",
+ "version": "0.2.0",
"description": "echarts for react-native",
"main": "src/index.js",
"directories": {
diff --git a/src/components/Echarts/index.js b/src/components/Echarts/index.js
index e00ca9b3..c433b17a 100644
--- a/src/components/Echarts/index.js
+++ b/src/components/Echarts/index.js
@@ -8,10 +8,11 @@ export default class App extends Component {
return (