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/03/10 09:27:18 UTC

[incubator-echarts] branch fix-sunburst-default-downplay created (now 63790c0)

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

shenyi pushed a change to branch fix-sunburst-default-downplay
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.


      at 63790c0  fix(sunburst): default sunburst downplay not work.

This branch includes the following new commits:

     new 63790c0  fix(sunburst): default sunburst downplay not work.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-echarts] 01/01: fix(sunburst): default sunburst downplay not work.

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch fix-sunburst-default-downplay
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 63790c0cd8f4cf91918190b0c75a4e1d426eec38
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Mar 10 17:26:53 2020 +0800

    fix(sunburst): default sunburst downplay not work.
---
 src/chart/sunburst/SunburstSeries.js | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/chart/sunburst/SunburstSeries.js b/src/chart/sunburst/SunburstSeries.js
index e3b192e..4e43fc3 100644
--- a/src/chart/sunburst/SunburstSeries.js
+++ b/src/chart/sunburst/SunburstSeries.js
@@ -105,8 +105,7 @@ export default SeriesModel.extend({
             align: 'center',
             position: 'inside',
             distance: 5,
-            silent: true,
-            emphasis: {}
+            silent: true
         },
         itemStyle: {
             borderWidth: 1,
@@ -116,13 +115,19 @@ export default SeriesModel.extend({
             shadowColor: 'rgba(0, 0, 0, 0.2)',
             shadowOffsetX: 0,
             shadowOffsetY: 0,
-            opacity: 1,
-            emphasis: {},
-            highlight: {
+            opacity: 1
+        },
+        highlight: {
+            itemStyle: {
                 opacity: 1
+            }
+        },
+        downplay: {
+            itemStyle: {
+                opacity: 0.5
             },
-            downplay: {
-                opacity: 0.9
+            label: {
+                opacity: 0.6
             }
         },
 


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