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/10/27 13:09:59 UTC
[incubator-echarts-examples] branch next updated: update gauge
examples
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-examples.git
The following commit(s) were added to refs/heads/next by this push:
new cce1bf3 update gauge examples
cce1bf3 is described below
commit cce1bf336ca20463cbfd3823fc7b04582709c2cb
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Oct 27 21:09:01 2020 +0800
update gauge examples
---
public/data/gauge-barometer.js | 4 ++++
public/data/gauge-simple.js | 3 ++-
public/data/gauge-stage.js | 1 +
public/data/gauge-temperature.js | 1 +
4 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/public/data/gauge-barometer.js b/public/data/gauge-barometer.js
index 56934b4..13ac5f0 100644
--- a/public/data/gauge-barometer.js
+++ b/public/data/gauge-barometer.js
@@ -55,6 +55,10 @@ option = {
color: '#000'
}
},
+ detail: {
+ valueAnimation: true,
+ precision: 1
+ },
title: {
offsetCenter: [0, '-50%']
},
diff --git a/public/data/gauge-simple.js b/public/data/gauge-simple.js
index b52c58e..80b2a86 100644
--- a/public/data/gauge-simple.js
+++ b/public/data/gauge-simple.js
@@ -1,6 +1,6 @@
/*
title: Simple Gauge
-titleCN: 基础仪表盘
+titleCN: 带标签数字动画的基础仪表盘
category: gauge
difficulty: 1
*/
@@ -13,6 +13,7 @@ option = {
name: 'Pressure',
type: 'gauge',
detail: {
+ valueAnimation: true,
formatter: '{value}'
},
data: [{
diff --git a/public/data/gauge-stage.js b/public/data/gauge-stage.js
index 021edad..7a172ab 100644
--- a/public/data/gauge-stage.js
+++ b/public/data/gauge-stage.js
@@ -45,6 +45,7 @@ option = {
fontSize: 20
},
detail: {
+ valueAnimation: true,
formatter: '{value} km/h',
color: 'auto'
},
diff --git a/public/data/gauge-temperature.js b/public/data/gauge-temperature.js
index a599519..ac8f74c 100644
--- a/public/data/gauge-temperature.js
+++ b/public/data/gauge-temperature.js
@@ -58,6 +58,7 @@ option = {
show: false
},
detail: {
+ valueAnimation: true,
width: '60%',
lineHeight: 40,
height: '15%',
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org