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 2021/10/14 01:37:22 UTC

[echarts-examples] 01/04: fix circle-packing-with-d3 example code

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

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

commit b1eed2723b089ada9d04dc9cacb9d43eecb05779
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Thu Sep 30 17:15:52 2021 +0800

    fix circle-packing-with-d3 example code
---
 public/examples/ts/circle-packing-with-d3.js | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/public/examples/ts/circle-packing-with-d3.js b/public/examples/ts/circle-packing-with-d3.js
index 145d582..bcdc92d 100644
--- a/public/examples/ts/circle-packing-with-d3.js
+++ b/public/examples/ts/circle-packing-with-d3.js
@@ -194,7 +194,7 @@ function initChart(seriesData, maxDepth) {
     }
   };
 
-  myChart.setOption < echarts.EChartsOption > option;
+  myChart.setOption(option);
 
   myChart.on('click', { seriesIndex: 0 }, function (params) {
     drillDown(params.data.id);
@@ -210,13 +210,11 @@ function initChart(seriesData, maxDepth) {
     // A trick to prevent d3-hierarchy from visiting parents in this algorithm.
     displayRoot.parent = null;
 
-    myChart.setOption <
-      echarts.EChartsOption >
-      {
-        dataset: {
-          source: seriesData
-        }
-      };
+    myChart.setOption({
+      dataset: {
+        source: seriesData
+      }
+    });
   }
 
   // Reset: click on the blank area.
@@ -226,5 +224,3 @@ function initChart(seriesData, maxDepth) {
     }
   });
 }
-
-export {};

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