You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/12/06 06:23:32 UTC
[incubator-echarts-doc] branch next updated: fix code in example
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/next by this push:
new 74449d7 fix code in example
74449d7 is described below
commit 74449d765b3a297a17dece48c8903c067be7e8a9
Author: pissang <bm...@gmail.com>
AuthorDate: Sun Dec 6 14:23:18 2020 +0800
fix code in example
---
en/tutorial/dynamic-data.md | 4 ++--
zh/tutorial/dynamic-data.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/en/tutorial/dynamic-data.md b/en/tutorial/dynamic-data.md
index 6ee5c38..5b07b3f 100644
--- a/en/tutorial/dynamic-data.md
+++ b/en/tutorial/dynamic-data.md
@@ -19,13 +19,13 @@ $.get('data.json').done(function (data) {
data:['Sales']
},
xAxis: {
- data: ["shirts","cardigan","chiffon shirt","pants","heels","sockes"]
+ data: data.categories
},
yAxis: {},
series: [{
name: 'Sales',
type: 'bar',
- data: [5, 20, 36, 10, 10, 20]
+ data: data.data
}]
});
});
diff --git a/zh/tutorial/dynamic-data.md b/zh/tutorial/dynamic-data.md
index b007d4e..72808f8 100644
--- a/zh/tutorial/dynamic-data.md
+++ b/zh/tutorial/dynamic-data.md
@@ -19,13 +19,13 @@ $.get('data.json').done(function (data) {
data:['销量']
},
xAxis: {
- data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
+ data: data.categories
},
yAxis: {},
series: [{
name: '销量',
type: 'bar',
- data: [5, 20, 36, 10, 10, 20]
+ data: data.data
}]
});
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org