You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "echarts-bot[bot] (via GitHub)" <gi...@apache.org> on 2023/06/08 12:00:44 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #18732: [Bug] 半环形图(饼图),多项为0时,显示的不为一个半环形了。

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

   @sober-bruce 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] In the semi-circular chart (pie chart), when the number of items is 0, the display is no longer a semi-circular chart.
   
   **BODY**
   
   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=pie-half-donut
   
   ### Steps to Reproduce
   
   1. The official implementation of the semi-circular chart is to insert a piece of data at the end (the value of the data is the sum of all the previous items, and its color is set to none), so that only the previous items are displayed, realizing the effect of displaying the semi-ring.
   2. However, if the previous item is greater than 1, and the value is 0, this will cause the value of the last item to be also 0; The last item will not account for 50%.
   
   ### Current Behavior
   
   1. When the item exceeds 1 and each item is 0, it will not be displayed in a semi-circular state.
   
   ### Expected Behavior
   
   1. When the item exceeds 1 and each item is 0, it is displayed in a semi-circular state.
   
   ### Environment
   
   ```markdown
   - OS: Windows 10
   - Browser:Chrome 113.0.5672.129
   - Framework: Vue@3.2.47
   ```
   
   ### 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