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

[I] [Bug] Treemap selection children disappear on hover [echarts]

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

   ### Version
   
   6.0.0
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/en/editor.html?c=treemap-show-parent&code=7Vptb9s2EP6eX0G4A2QjmSLHcbI4aYE1wdBiKRKs2frBMAJaoi02kihIdNZg6H_fUS8WZVkSabf5JAGtLN7x7ngvz6PA9l-uXRxxM3bZv7cMOzRY9geXB7-YS8L7f93dPTze__7wAR0i49jBHB_jOCY8_ejQ-MnkESHm15gFxhFarAKbUxagvhDdgM4A_XeAUO7DpQ6RfKBiAzi7Jc_EuwvFYz_dhlBE-CoK0DR5QNmiuCgn_mf-4pGJtIjQnEUOia6Zx6IJMt6cn58bRxXxF-pwd4IsWbLEYbY8XK9-LxRWYUiiWzwnXtmfSNoELbAXk2Jb9mm9XTfq8XhcH_VYI2rihy6OaVz2VhNEJQzHcQxJnh-r8YC22PwZQ9GwqOMETS1zND5CljmeFXE1pqHlnNXEJAHLPi3zrBprcp-JnhMf101PeNZxibzPkgf0dh0Xp7wcJiffOGTnBvob_R3jJZFK5ZGFkNkk4CTKc7fOEmfM4zSUjS1Y5GMOytBD69GhwYLl_Z9ezziCf96KQGBCaiYP4iyyhhjEe8zdj6CRK8prdfqgO00SI0WF-kKDgmh4CberknHTI8GSuyA4PCwHCofM9MxwFbt9edeUzswA-ySZ-2pTVWY9vYwrhz4j2wPUedvLMvhrUpTeOwMdlnSh4W1R1dhM82qSwGYO-fDw6XYdifmV0aBvHBuDQWW3cQWI9vyuNHuwWpQaags4uOEEO841830cQ8qgKmAWtP58L4_OLPNqSGevDFFMIkpgVKcHaUZ7_CUkvQncIXQfh71UsUcdafEx3fUIi5k4Jh6xOXE-wcmFor8SKYN0ZfIA1q89aj-BMMGtbL1AOBAUNe0JhIMVHq0yzWR1wQL-hdCly0F2ZlmJJDtKz1O1ErKYip4XcdIgBnJ4YOEtDFEWbLure
 USwY0crf77VXwHM-QbBWyAomqzcvj3RoSKc92wuBZGIbJd6TkREtOUerZqpmLuHzt2wp2a32X7Fzz_MW_kEDWt8bfUpAfNW3TVal1Jcb1rAsYjlzfj0YmSftoSSlrEAcs2dLMQ25S-wq8QMjX4SKoEdaSvVXRKPbrVV7XKFlFiW1XKqNrc1c_oqvvP3CTXPen2Tji2P2BMp-sAGcCU5tP2Mztuv-6SY854q3sNqk7xXCVJ4f7UCWGQ4Gl7oF0CvcJsF0NutXQAFoNCcMu1JU41DHWR2C2GvXhRc-jFwyDfwOGrRDeHdSwQ2PIbrRPw3auOo5HWqsaINAerx5UnHlx1fdnzZ8WXHlx1fvgpfnmrzZduAvSZftnJ3x5cdX3Z82fFlx5cdX_4Qvix9HaTEl-Ofxpc1hKY4D1ISR6PxzUUTEFQ6t32HRFhblWrOpNAJUuB_JFdNGHUeFHt-XzdKJKKBXbuRhk6Vd6u0FjZtH8S6FCqQwD4JVAJ9XbDfDeTVE9gwchpgroygTf7UQFvdlVZvyKB8UqNTBuO6771y_P2tIi5HtAG3LZ0nHfvk4nR0to0GKr1Sr1kHpxvpaahJG55tWmrpJl1zjXCoMMV68KeSfb0KKE1puWE2U9AAZ7skoBG-VGFLD67aE7CldRVgqRUjttlthp92k421kuFl4y_uAlY2v5lfv8kNLatAk-wnPwe5w1n6Q4AB3OB3GN8Hl_8D&enc=deflate
   
   ### Steps to Reproduce
   
   1. Click Node "Bob" to select it
   2. Hover in and out of Node "Bob" a few times
   
   ### Current Behavior
   
   After hovering in and out of the selected node, its children disappear. Continuing to hover in and out will also hide the sub-children.
   
   ### Expected Behavior
   
   Children should not disappear.
   
   ### Environment
   
   ```markdown
   - OS: Ubuntu
   - Browser: Chrome 143.0.7499.40
   - Framework: Vue@3
   ```
   
   ### Any additional comments?
   
   Here is a small video to observe the behavior if my description wasn't clear enough:
   
   https://github.com/user-attachments/assets/ccca1f90-410c-407b-8669-194fd72c3ce3


-- 
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] Treemap selection children disappear on hover [echarts]

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

   @ThomasKro @plainheart 
   我认为这个的根本原因是,`select`对于父节点本身就是不生效的,比如下面的这个`select.itemStyle.color`应该是黄色,但是却错误地应用了`borderColor`的颜色,最快捷的方式就是把对于父元素(Blob、Pool)的选中态禁用掉,`'disabled': true`. 
   I think the fundamental issue is that the `select` property is inherently incompatible with parent elements that have `upperLabel` configured. For instance, the `select.itemStyle.color` in the example below should render as yellow, but instead it erroneously inherits the `borderColor`. The most straightforward workaround is to simply disable selection for parent elements, `"disabled": true`.
   
   [try this link](https://echarts.apache.org/examples/en/editor.html?c=treemap-show-parent&code=7Vptb9s2EP6eX0GoA2QjmezEcbI4aYE1wdBiKRKs2fohCAJaoi02kihIdFZj6H_fUS8WJVkSaTdFUVhAa5t3xzs-d_ecbMVfXro44lbssn-vGXZoMO_1z_d-seaE9_66ubl7vP397h3aR-bAwRwPcBwTnr51aPxk8YgQ63PMAvMAzRaBzSkLUE-IrkCnj_7bQyj34VKHSD5QYQDOrskz8W5C8bGXmiEUEb6IAnSffEDZorgoJ_5HvvTIRFpEaMoih0SXzGPRBJmvTk9PzYOa-BN1uDtBQ1kyx2G2fLha_VooLMKQRNd4SryyPwHaBM2wF5PCLHu3MteNejweN0c91oia-KGLYxqXvTUEUQvDcRxTkufHaj2gLYw_YkgaFnmcoPuhNRofoKE1fijiaoWh45x1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Kt8vylAXxLPg0creph3_2qojndLh2pwvzLhtvlT43h1V1qlJHP4UYNOmbubnj_ldP1bTVyOqMLOHSUnHfvo7Hh0sm5q1HqzWbOJfSvwtOSki_6qO3VUk-52reyp0L56bKmCvl4GlLq0XDBVCBrZT4_zNgCrjeMUuU3rVrf8ZbXhl_tuNNf0gQLHdRLOun3buax7y9bEy1xV-apfcFT1cfvqLvJwOCyoKfvznr3c4UP6dL8PL_A3F1_75_8D&enc=deflate&lang=js)
   
   <img width="1523" height="762" alt="Image" src="https://github.com/user-attachments/assets/39439633-85f7-4b86-a3d0-ad4a8b4547cb" />
   
   另外,文档这里对于`select`的`itemStyle`也不够完善
   Additionally, the documentation here is incomplete regarding the `itemStyle` within `select`.
   
   <img width="1100" height="685" alt="Image" src="https://github.com/user-attachments/assets/a60f6f42-3bab-4f3c-9bd2-5b97dffc010b" />


-- 
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] Treemap selection children disappear on hover [echarts]

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

   It seems the same bug exists v5 as well...


-- 
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] Treemap selection children disappear on hover [echarts]

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

   I can confirm that this issue is still reproducible in v5 as well...


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