You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "kayla3love (via GitHub)" <gi...@apache.org> on 2024/02/20 12:48:25 UTC

[I] [Bug] Label disappear in emphasis state when Pie sets "minShowLabelAngle" property [echarts]

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

   ### Version
   
   5.5.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/vfdn23
   
   ### Steps to Reproduce
   
   1、Wait for all setTimeout functions to complete execution.
   2、Move the mouse over the blue sector to enter the highlight state.
   3、Both the label and labelLine of the blue sector disappear.
   4、Move the mouse out of the blue sector, and the label and labelLine return to normal.
   
   ### Current Behavior
   
   Now dynamically update the dataset of the pie chart, changing Series A's value from Value1 to Value2, and then back to Value1.
   
   1、If the minShowLabelAngle property is not set, everything runs normally.
   2、If set minShowLabelAngle property, and the sector angle corresponding to Value1 > `minShowLabelAngle` while the sector angle corresponding to Value2 < `minShowLabelAngle`, then after the value of Series A is restored to Value1, the label and labelLine of the corresponding sector in highlight state will disappear
   ![image](https://github.com/apache/echarts/assets/28292905/6e988cad-ebc0-4768-aa79-f902a148dfaa)
   
   
   ### **Possible Reason**:
   When value changes to Value2,`label.ignore` and `label.emphasis.ignore` is true
   
   ![image](https://github.com/apache/echarts/assets/28292905/7b46ff03-3fc3-4be1-8c76-1ebe26379e15)
   
   When value back to Value1,`ignore` is false but `emphasis.ignore` is true
   
   ![image](https://github.com/apache/echarts/assets/28292905/1757603e-efac-442b-89d8-6a0d04c75fc6)
   
   ### Expected Behavior
   
   When value back to Value1,label and labelLine appear in in highlight state
   
   ### Environment
   
   ```markdown
   - OS: macOS Ventura 13.4
   - Browser: Chrome 121.0.6167.184
   ```
   
   
   ### 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] Label disappear in emphasis state when Pie sets "minShowLabelAngle" property [echarts]

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

   > ### **Possible Reason**:
   > When value changes to Value2,`label.ignore` and `label.emphasis.ignore` is true
   > 
   > ![image](https://private-user-images.githubusercontent.com/28292905/306258195-7b46ff03-3fc3-4be1-8c76-1ebe26379e15.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg0ODUwMTQsIm5iZiI6MTcwODQ4NDcxNCwicGF0aCI6Ii8yODI5MjkwNS8zMDYyNTgxOTUtN2I0NmZmMDMtM2ZjMy00YmUxLThjNzYtMWViZTI2Mzc5ZTE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjIxVDAzMDUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2MGQ4NTQxOTMyNzY5YzlkNzlkZmNjNGFhNjE5OTBmNzg0NTA1ODdjNGQ5ZGQ3YTRmOWIwMjkxYzg2OTZiYWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.afHpSrgkeFjgw4nnbuHDcgSgqirThxnRj0mrV3XhwIY)
   > 
   > When value back to Value1,`ignore` is false but `emphasis.ignore` is true
   > 
   > ![image](https://private-user-images.githubusercontent.com/28292905/306256986-1757603e-efac-442b-89d8-6a0d04c75fc6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDg0ODUwMTQsIm5iZiI6MTcwODQ4NDcxNCwicGF0aCI6Ii8yODI5MjkwNS8zMDYyNTY5ODYtMTc1NzYwM2UtZWZhYy00NDJiLTg5ZDgtNmEwZDA0Yzc1ZmM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAyMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMjIxVDAzMDUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3OWJmZWI4ZjlkMjEwOTVmM2JlZDlhODhkNzZkOTE4YTFmMWNjNjJlZDg3YjcxNzAzZjlmODVkZjNiYmEyMWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5kHYSt1-t9O7hnoNz6jstIEUoXy-3o-mvRl2jlzgwx4)
   
   @helgasoft Possible problems: 
   ```
   if(stateShow !== showNormal){
     stateObj.ignore = !stateShow
   }
   ```
   


-- 
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] Label disappear in emphasis state when Pie sets "minShowLabelAngle" property [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19625:
URL: https://github.com/apache/echarts/issues/19625#issuecomment-3937161208

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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] Label disappear in emphasis state when Pie sets "minShowLabelAngle" property [echarts]

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

   API for [minShowLabelAngle](https://echarts.apache.org/en/option.html#series-pie.minShowLabelAngle) says _"If a sector is less than this angle (0 ~ 360), label and labelLine **will not** be displayed."_
   Your _minShowLabelAngle_ is 10 and therefore the value of 0 does not show up.
   📌 please close issue if problem solved.


-- 
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] Label disappear in emphasis state when Pie sets "minShowLabelAngle" property [echarts]

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

   > API for [minShowLabelAngle](https://echarts.apache.org/en/option.html#series-pie.minShowLabelAngle) says _"If a sector is less than this angle (0 ~ 360), label and labelLine **will not** be displayed."_ Your _minShowLabelAngle_ is 10 and therefore the value of 0 does not show up. 📌 please close issue if problem solved.
   
   In Demo,Value then changes from 0 to 180,180deg is larger than minShowLargeAngle,but label disappears in emphasis state,appears in normal state
   ![mmexport1708475532567](https://github.com/apache/echarts/assets/28292905/54819df9-39bd-41cd-bc27-b07e787d750f)
   


-- 
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] Label disappear in emphasis state when Pie sets "minShowLabelAngle" property [echarts]

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

   ok, I see it now, you are right - emphasis label is missing even though it should show up in accordance with the new data.
   [demo](https://echarts.apache.org/examples/en/editor.html?code=CYQwLiDOCmYAQF44G8CwAoOdIHsCuATgMbQBccA2hllmpjVgLY4B2YAFuQOQBMADDwDMfAOxcANNQZwAbiAA2eMnACMADj5SsAX0n1aWmszac4vAcLUTDWOYuXrN-uNqkBdDNoDcGDKAgwYCqIKFK4hCTkVM500nDGHNz8QqLWzrYKSuRODLqGsdIJpuYpVnpxdlmqGoau9B7o3r7oOAAOYACWrCEF_lCw5djQBB3QkFH5NnBgAJ6tylyto2lxBCDAHXjjZgCsfACkK4UdLADK7DgA7gAyIABG0PIAgiwA5vIOfIMM8veP5AU4pALpdyGACEopnl0nBoCwiDhgMpAdIOmBoIwAHIgRgLIpHCqZBaVaBcKG1dyeHzoDCBAAqHVx-DAAAoAGZ4eGdbosgCUoXojBmAGF2CACGAAHSBADy7S6LBZyDgfUC5FVsGC2l51N0qj4Bp1zXpjOgzPZnKI3JYcD5AqYIrFEulsDl1qVKvA_Xg2t14jg_ENXiAA) - blue sector label missing on hover.


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