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 08:04:08 UTC

[incubator-echarts] 01/01: fix: fix sunburst default downplay style

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 ad8e5f75827f490bed75bdfe8c58adf901164acb
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Mar 10 16:03:28 2020 +0800

    fix: fix sunburst default downplay style
---
 src/chart/sunburst/SunburstSeries.js | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/chart/sunburst/SunburstSeries.js b/src/chart/sunburst/SunburstSeries.js
index e3b192e..0ae1fdc 100644
--- a/src/chart/sunburst/SunburstSeries.js
+++ b/src/chart/sunburst/SunburstSeries.js
@@ -116,13 +116,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.5
             }
         },
 


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