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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
