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 2022/11/21 11:59:14 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17948: [Bug] 饼图点击图例legend隐藏部分项,对应的tooltip formatter,label formatter函数中的百分比数据不正确

echarts-bot[bot] commented on issue #17948:
URL: https://github.com/apache/echarts/issues/17948#issuecomment-1321947996

   @landmine007 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] The pie chart clicks on the legend legend to hide some items, and the percentage data in the corresponding tooltip formatter, label formatter function is incorrect
   
   **BODY**
   
   ### Version
   
   e.g.5.4.0
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/embed/focused-cori-zefprj?fontsize=14&hidenavigation=1&theme=dark
   
   ### Steps to Reproduce
   
   1. Click legend to hide an item;
   2. In the formatter function of the tooltip, print the params.percent parameter;
   3. In the formatter function of label, print the params.percent parameter;
   4. Check the tooltip and label display percentage.
   
   ### Current Behavior
   
   1. In the formatter function of tooltip, the params.percent parameter value is not correct;
   2. In the formatter function of label, the value of the params.percent parameter is incorrect;
   
   ### Expected Behavior
   
   1. In the formatter function of the tooltip, the params.percent parameter value is displayed correctly;
   2. In the formatter function of label, the value of the params.percent parameter is displayed correctly;
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   ### Any additional comments?
   
   _No response_
   </details>


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