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/05/18 03:21:48 UTC

[GitHub] [echarts] echarts-bot[bot] commented on issue #17058: [Bug] echarts 饼图出现了锯齿

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

   @dbb1016606796 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 echarts pie chart is jagged
   
   **BODY**
   
   ### Version
   
   5.3.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   ![bf3547e5b0bef7b63c0467b67725104](https://user-images.githubusercontent.com/45966928/168950537-13727c80-837e-4912-9b98-1b6f1db7a210.png)
   
   
   ### Current Behavior
   
   ![bf3547e5b0bef7b63c0467b67725104](https://user-images.githubusercontent.com/45966928/168950488-74fa524f-1014-4058-b228-82b11b0d5f4c.png)
   
   
   ### Expected Behavior
   
   It uses on-demand loading, uses svg rendering, the display resolution is 1920*1080, and the window.devicePixelRatio is 1
   {
       tooltip: {
         backgroundColor: '#00296B',
         borderColor: '#00296B',
         textStyle: {
           color: '#1ec4ff',
         },
         trigger: 'item',
         formatter: (params: object | any) => {
           const { name, value } = params
           return `${name}: ${value}`
         },
       },
       legend: {
         bottom: 'bottom',
         textStyle: {
           color: '#1ec4ff',
         },
         pageIconColor: 'rgba(255,255,255,.6)',
         pageTextStyle: {
           color: 'rgba(255,255,255,.6)',
         },
       },
       series: [
         {
           name: 'Work order analysis',
           type: 'pie',
           radius: ['50%', '70%'],
           color,
           bottom: '40px',
           tooltip: {
             trigger: 'item',
           },
           legend: {
             orient: 'vertical',
             bottom: 'bottom',
           },
           data:[{value:4,name:"name1"},{value:6,name:"name2"},{value:3,name:"name3"},{value:1,name:" name4"}]
         },
       ],
     }
   
   ### 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