You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/11/19 02:12:58 UTC

[GitHub] [incubator-echarts] dirslashls opened a new issue #13643: Treemap current state is lost with setOption

dirslashls opened a new issue #13643:
URL: https://github.com/apache/incubator-echarts/issues/13643


   ### Version
   5.0.0
   
   ### Steps to reproduce
   Use the following where I have setup a custom toolbox feature. After the treemap is rendered, drilldown and then click on the toolbox feature which invokes a trivial setOption. The treemap state is reset.
   
   ```
   option = {
       toolbox: {
           feature: {
               myView: { 
                   icon: 'path://M22,7H2V2h20V7z M22,9.5H2v5h20V9.5z M22,17H2v5h20V17z',
                   onclick: () => myChart.setOption({toolbox: { show:true } })
               }
           } 
       },
       series: [{
           type: 'treemap',
           data: [{
               name: 'nodeA',            // First tree
               value: 10,
               children: [{
                   name: 'nodeAa',       // First leaf of first tree
                   value: 4
               }, {
                   name: 'nodeAb',       // Second leaf of first tree
                   value: 6
               }]
           }, {
               name: 'nodeB',            // Second tree
               value: 20,
               children: [{
                   name: 'nodeBa',       // Son of first tree
                   value: 20,
                   children: [{
                       name: 'nodeBa1',  // Granson of first tree
                       value: 20
                   }]
               }]
           }]
       }]
   };
   ```
   
   ### What is expected?
   When setOption is used to merge non-state related options, the treemap state shouldn't be reset.
   
   ### What is actually happening?
   The treemap always resets back to the initial state.
   
   ---
   Note that it is not required to have a custom toolbox feature. I just gave it for a quick example. In my case, the toolbox is hidden/shown when the mouse enters/leaves the chart.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13643: Treemap current state is lost with setOption

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13643:
URL: https://github.com/apache/incubator-echarts/issues/13643#issuecomment-730079446


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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