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/02/21 06:16:37 UTC

[GitHub] [echarts] hilitterg opened a new issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

hilitterg opened a new issue #16550:
URL: https://github.com/apache/echarts/issues/16550


   ### Version
   
   "echarts": "^5.2.2",     "echarts-for-react": "^3.0.2",
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   `option = {
               tooltip: {
                   show: false,
                   formatter: '{a} <br/>{b} : {c}%'
               },
               series: [{
                   name: 'Pressure',
                   type: 'gauge',
                   min: 0,
                   max: 36,
                   startAngle: 321,
                   endAngle: -39,
                   center: ['50%', '70%'],
                   animation: false,
                   progress: {
                       show: true,
                       width: 2,
                       itemStyle: {
                           color: '#4992FF'
                       }
                   },
                   splitNumber: 36,
                   axisLine: {
                       show: true,
                       lineStyle: {
                           color: [[1, '#4992FF']],
                           width: 3
                       }
                   },
                   axisLabel: {
                       color: 'white',
                       fontSize: 14,
                       distance: -30,
                       formatter: (value) => {
                           return (value === 36 ? '' : value);
                       }
                   },
                   axisTick: {
                       distance: -10,
                       splitNumber: 2,
                       lineStyle: {
                           color: 'white',
                       }
                   },
                   splitLine: {
                       distance: -14,
                       lineStyle: {
                           color: 'white'
                       }
                   },
                   pointer: {
                       width: 4,
                       length: '100%',
                       itemStyle: {
                           color: '#4992FF',
                           borderColor: '#4992FF',
                       }
                   },
                   detail: {
                       show: true,
                       color: 'white',
                       fontSize: 15,
                       offsetCenter: [0, '70%'], // 相当于仪表盘中心的偏移位置
                       formatter: '航向角'
                   },
                   data: [
                       // value为仪表盘指针指向的值
                       {
                           value: 23,
                           name: `${23.1 * 10}°`,
                           title: {
                               color: 'white',
                               fontSize: 22,
                               offsetCenter: [0, '30%'], // 相当于仪表盘中心的偏移位置
                           }
                       }
                   ]
               }]
           };`
   
   设置 startAngle 为321, 页面显示会出现错误
   也在示例-时钟仪表盘Clock 中测试过,会出现一样的问题,
   查过echarts的bug中 #14095中曾提到过该问题,version 5.0.2中曾修复过,但在clock示例中显示还是有错误
   
   ### Current Behavior
   
   ![image](https://user-images.githubusercontent.com/57760070/154899397-fbad21db-75c9-4ec7-a721-761692e0029a.png)
   
   
   ### Expected Behavior
   
   希望能够正常显示
   
   ### Environment
   
   ```markdown
   - OS:Windows10
   - Browser: Chrome 78.0.3904.108
   - Framework:React16
   
   "echarts": "^5.2.2",
   "echarts-for-react": "^3.0.2",
   ```
   
   
   ### 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

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


[GitHub] [echarts] jttry removed a comment on issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

Posted by GitBox <gi...@apache.org>.
jttry removed a comment on issue #16550:
URL: https://github.com/apache/echarts/issues/16550#issuecomment-1048561991


   I'm interested in fixing 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


[GitHub] [echarts] echarts-bot[bot] commented on issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16550:
URL: https://github.com/apache/echarts/issues/16550#issuecomment-1046511066


   @hilitterg 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] When the dashboard set the start angle to a certain angle, there will be a display error
   </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


[GitHub] [echarts] hilitterg edited a comment on issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

Posted by GitBox <gi...@apache.org>.
hilitterg edited a comment on issue #16550:
URL: https://github.com/apache/echarts/issues/16550#issuecomment-1046514823


   In addition to 0 degrees, the problem also occurs when startAngle is set to 321 degrees and endAngle is set to -39 degrees


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


[GitHub] [echarts] jttry commented on issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

Posted by GitBox <gi...@apache.org>.
jttry commented on issue #16550:
URL: https://github.com/apache/echarts/issues/16550#issuecomment-1048561991


   I'm interested in fixing 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


[GitHub] [echarts] hilitterg edited a comment on issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

Posted by GitBox <gi...@apache.org>.
hilitterg edited a comment on issue #16550:
URL: https://github.com/apache/echarts/issues/16550#issuecomment-1046514823


   In addition to 0 degrees, the problem also occurs when startAngle is set to 321 or 0 degrees and endAngle is set to -39 or 0 degrees


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


[GitHub] [echarts] hilitterg commented on issue #16550: [Bug] 仪表盘设置开始角度为某一个角度时会出现显示错误

Posted by GitBox <gi...@apache.org>.
hilitterg commented on issue #16550:
URL: https://github.com/apache/echarts/issues/16550#issuecomment-1046514823


   In addition to 0 degrees, the problem also occurs when startAngle is set to 231 degrees and endAngle is set to -39 degrees


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