You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2022/09/26 09:43:09 UTC

[echarts-examples] branch gh-pages updated: fix: gauge example size

This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new e0ce8d73 fix: gauge example size
e0ce8d73 is described below

commit e0ce8d73c834258c7e187240843ebe74971aa652
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon Sep 26 17:42:58 2022 +0800

    fix: gauge example size
---
 public/examples/ts/gauge-grade.ts | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/public/examples/ts/gauge-grade.ts b/public/examples/ts/gauge-grade.ts
index 720df531..cda1ec1d 100644
--- a/public/examples/ts/gauge-grade.ts
+++ b/public/examples/ts/gauge-grade.ts
@@ -12,6 +12,8 @@ option = {
       type: 'gauge',
       startAngle: 180,
       endAngle: 0,
+      center: ['50%', '75%'],
+      radius: '90%',
       min: 0,
       max: 1,
       splitNumber: 8,
@@ -68,12 +70,12 @@ option = {
         }
       },
       title: {
-        offsetCenter: [0, '-20%'],
-        fontSize: 30
+        offsetCenter: [0, '-10%'],
+        fontSize: 20
       },
       detail: {
-        fontSize: 50,
-        offsetCenter: [0, '0%'],
+        fontSize: 30,
+        offsetCenter: [0, '-35%'],
         valueAnimation: true,
         formatter: function (value: number) {
           return Math.round(value * 100);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org