You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "selunders (via GitHub)" <gi...@apache.org> on 2025/03/13 18:07:40 UTC

[I] [Bug] Last series gets stuck on when toggling off visibility [echarts]

selunders opened a new issue, #20824:
URL: https://github.com/apache/echarts/issues/20824

   ### Version
   
   5.6.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/p/sandbox/vzl33w?file=%2Fsrc%2FApp.js%3A12%2C30
   
   ### Steps to Reproduce
   
   Toggle off all the series. The last one will not toggle off, and will get stuck rendered in that state. (It seems to do the same behavior no matter which you turn off last):
   
   ![Image](https://github.com/user-attachments/assets/4739a79c-1a43-4932-839a-f8678267fd8e)
   
   
   ### Current Behavior
   
   Final series to be toggled off stays rendered on the chart.
   
   ### Expected Behavior
   
   Final series to be toggled off should hide like the rest of the series.
   
   ### Environment
   
   ```markdown
   - OS: EndeavourOS Linux x86_64 
   - Browser: Chromium Version 136.0.7064.0 (Developer Build) (64-bit), Firefox 137.0b5 (64-bit)
   - Framework: React 19
   ```
   
   ### Any additional comments?
   
   _No response_


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

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


Re: [I] [Bug] Last series gets stuck on when toggling off visibility [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20824:
URL: https://github.com/apache/echarts/issues/20824#issuecomment-2722572222

   The problem is real, but your example seems too complex. If you gradually simplify it (less data, simpler layout), you may find the exact cause. I cannot reproduce with a [minimal example](https://echarts.apache.org/examples/en/editor.html?code=M4UwTsAEC8kNoF0DckCW0AMSBQAzA9mJABQAmAhgC4gyQB2IA7pACJUjEDkATBtwCwBaDEICMAZk4BKFBWqQAPLAbM21LrwHChvabPYA6UJTUc5IAwHMQJ9sSmQA1JFFSHAb2yRvkUBAMADgCuwAAWxO6QlACeASAAXJwARuRgnAA09OQAtgmQyZyOqI6OmXLk8XBwKqx25lKZALJUoQZg5HSk-Nn2AFSiGBgICJAAvjLYo3iEJOa0NaYafEIigqIA7HqQc0r0TLXqPMvagroy24bGi-ZWNosOzq4eXj5-wIEh4ZExcYkANqgGBksrl4vkADKFYqlC6UCpVBZ1dgNSDNSitdqdbp9AZDEbjHBTfABSiofB0WiebwADwAgtTUMAwd9YnlOKTcpwxukXtF6YzmaNMn8QNZOvF3D8EpxgABjMD4P5_ThCqL4RWkgISoUvPyoEBM3zgYCTJBAA).


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Bug] Last series gets stuck on when toggling off visibility [echarts]

Posted by "selunders (via GitHub)" <gi...@apache.org>.
selunders commented on issue #20824:
URL: https://github.com/apache/echarts/issues/20824#issuecomment-2722888651

   I was able to simplify the example somewhat here: [https://codesandbox.io/p/sandbox/apache-echarts-demo-forked-cph6d6](https://codesandbox.io/p/sandbox/apache-echarts-demo-forked-cph6d6)
   
   Also found 3 possible ways to prevent the problem from occurring:
   1. setting 'animation: true'
   2. Remove 'z: 16' from the series
   3. Reduce the number of datapoints shown.
   
   I marked these in the index.js file of the new codesandbox with ⬤ symbols.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Bug] Last series gets stuck on when toggling off visibility [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20824:
URL: https://github.com/apache/echarts/issues/20824#issuecomment-2723176440

   very good! Seems to me that ```z:16``` was somehow responsible, _animation_ and # of points just slow things down.
   Check [this Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=GYVwdgxgLglg9mABAWwIYGsCmB5ADrBACgGdMAnGTYgEVSlQEpEBvAWAChFEIFipEA5pigAZTEgC8iEuUrEmEgHwsOXLgBthiTZMQAGANyq1pClQB0wOGQCiqCAAtChGFEzIFytpzUbxiAGopV3dzABM6VHMdASgHIx8uAF8GBN8yYRAyJB00xCSE4wyoLKRvX1QwGDQCMAAuRGBUdVIAGkQAeg7EQBJqLjQATwAjTEQAciaWzDHEGGJG1D5ydqGQfiG4OMQAd2t0Yy5K6rp4MGosk4QGgEZr1oPEWChNBvLfR8wADygGgAMAORAyEQtHouDgMDAUGIDQAJMwhKJxDIzDRIgwkr97ok1G5vgBlKADF4qHG-KxQgDqmBgAgcP0QACIMgIQOpUGRGdj3moKVB8TAAF6YBqM64AFlwny5D2S3LUSXlXFMcgaKqooNQSu0mCEYDCr1lOuADMZmhNMrJjzguAaAGY9NquETcCKmcQIGQ4Op1JbfIqHp8AIKfOaGq1dF1uxkAN2aIEwfveUdFEDouusAyTcoeAxDYZYAZxUDg3tgttJPKgFAEQjIotQoeI2fy2pL3o2n3DPOAmDoWTdbx5EXoAC1S8huzy1HmmwBJfVfUVgBCJp0K9dcDJ8ayDos8_cbh4CCgGyvJm2ih0AUhbfhNDQArHb1zX6U-X0aNlAS5OmdcACZb3XHgoVQSERFQEZ1AaSY2geQ8Cg4JIOA4TR-FMeYpAAbQAXQSdDECGDlNUQHD8LQrR1EhTBSPIwp2C6RAAHFxHIdNEBHVBEHBSFoUaL1gT0a1EHFABOMSOCsMhpEIgArMj9AMRAFIAHkQa49C0wwVICAImDeJiej6ACGgAJUwMIQAgSEBEeBxRgAYkQOBgE4yJeKheZcAyGNxH4uJ
 Rh8uAhk0YFjOMYiyE1cxcBAYgnGwuT2jk3DUmMaiwFoyJYvixLkpUtKEhQ9gOCYoMwjCRBHyIjlEHVYgpOsWStBgRSdLa9TH2UmA9IM4xMNyhLCCHR4BldUUoq5RAHnZMghDqasE3aB5gpPKhiBgPyGnFLT2jW7dNr8gAVBxtwcb0DV2x0HncXAHEWAtmDCOYoM0M8lswQ8uDAVBkGjAAhOrGUCaQ2oCDSGG1LiGiizVtS6QUbgANnaIzjMQO0GgAYTgZB_qhWz7KoUY4DWervT8-ZAp4r1QvcXoIp8FJitQxjugqqqasy0YGqamTCEItqpA6xAup6vrz0GuLhtGlMmR56bZo5BbPvaYg_twTKBDqMZ1B_IYxn2r11uII63Wu424FN83TvOy66kth5fv-0URBoxB8VkKgmVBlxQeuKGHhh7QaPhh5EZRtHumMvoscQXH8f8onAtIFzyeISmfZp4L6fCpnknS9gSuQAZsYesgoHMUgoDwWpCDQLA69OFF5FSIA) (100K data points) to see if performance is accepable in your environment.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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


Re: [I] [Bug] Last series gets stuck on when toggling off visibility [echarts]

Posted by "selunders (via GitHub)" <gi...@apache.org>.
selunders commented on issue #20824:
URL: https://github.com/apache/echarts/issues/20824#issuecomment-2725265028

   The z:16 is helpful to have enabled for our use case; that said I saw on your example the 'large: true' option and [tried that on my minimal example from the first post](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=GYVwdgxgLglg9mABAWwIYGsCmB5ADrBACgGdMAnGTYgEVSlQEpEBvAWAChFEIFipEA5pigAZTEgC8iEuUrEmEgHwsOXLgBthiTZMQAGANyq1pClQB0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DWervT8-ZAp4r1QvcXoIp8FJitQxjugqqqasy0YGqamTCEItqpA6xAup6vrz0GuLhtGlMmR56bZo5BbPvaYg_twTKBDqMZ1B_IYxn2r11uII63Wu424FN83TvOy66kth5fv-0URBoxB8VkKgmVBlxQeuKGHhh7QaPhh5EZRtHumMvoscQXH8f8onAtIFzyeISmfZp4L6fCpnknS9gSuQAZsYesgoHMUgoDwWpCDQLA69OFF5FSIA). That seems to make everything work as we need! Thanks for looking into this


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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