You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2020/10/28 03:57:33 UTC
[incubator-echarts-examples] branch next updated: improve some
chart examples
This is an automated email from the ASF dual-hosted git repository.
wangdd pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git
The following commit(s) were added to refs/heads/next by this push:
new a2521a7 improve some chart examples
a2521a7 is described below
commit a2521a7a1f0f1c14a11158539936ca61efe5cda1
Author: Wdingding <wa...@gmail.com>
AuthorDate: Wed Oct 28 11:57:15 2020 +0800
improve some chart examples
---
public/data/bubble-gradient.js | 13 ++++++++++---
public/data/calendar-simple.js | 1 +
public/data/line-graphic.js | 5 +++--
3 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/public/data/bubble-gradient.js b/public/data/bubble-gradient.js
index 52ed5d7..9ab5549 100644
--- a/public/data/bubble-gradient.js
+++ b/public/data/bubble-gradient.js
@@ -2,7 +2,7 @@
title: Bubble Chart
category: scatter
titleCN: 气泡图
-difficulty: 1
+difficulty: 6
*/
var data = [
@@ -19,12 +19,19 @@ option = {
color: '#cdd0d5'
}]),
title: {
- text: '1990 与 2015 年各国家人均寿命与 GDP'
+ text: '1990 与 2015 年各国家人均寿命与 GDP' ,
+ left: '5%',
+ top: '3%'
},
legend: {
- right: 10,
+ right: '10%',
+ top: '3%',
data: ['1990', '2015']
},
+ grid: {
+ left: '8%',
+ top: '10%'
+ },
xAxis: {
splitLine: {
lineStyle: {
diff --git a/public/data/calendar-simple.js b/public/data/calendar-simple.js
index 4e557e9..0d628bb 100644
--- a/public/data/calendar-simple.js
+++ b/public/data/calendar-simple.js
@@ -2,6 +2,7 @@
title: Simple Calendar
titleCN: 基础日历图
category: calendar
+difficulty: 0
*/
function getVirtulData(year) {
diff --git a/public/data/line-graphic.js b/public/data/line-graphic.js
index 6180a65..dc61eb6 100644
--- a/public/data/line-graphic.js
+++ b/public/data/line-graphic.js
@@ -2,6 +2,7 @@
title: Custom Graphic Component
titleCN: 自定义图形组件
category: line
+difficulty: 9
*/
option = {
@@ -62,7 +63,7 @@ option = {
z: 100,
style: {
fill: '#fff',
- text: 'ECHARTS BAR CHART',
+ text: 'ECHARTS LINE CHART',
font: 'bold 26px sans-serif'
}
}
@@ -115,7 +116,7 @@ option = {
series: [
{
name: '高度(km)与气温(°C)变化关系',
- type: 'bar',
+ type: 'line',
smooth: true,
barCategoryGap: 25,
data:[15, -50, -56.5, -46.5, -22.1, -2.5, -27.7, -55.7, -76.5]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org