You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/07/22 02:33:21 UTC

[GitHub] [incubator-echarts] zhoujinzong opened a new issue #10888: 仪表盘刻度显示问题

zhoujinzong opened a new issue #10888: 仪表盘刻度显示问题
URL: https://github.com/apache/incubator-echarts/issues/10888
 
 
   <!--
   Please Use https://ecomfe.github.io/echarts-issue-helper to create the issue.
   Otherwise, it will be closed immediately.
   Questions in the form of *How to use ...* should be at Stack Overflow rather than GitHub issue list.
   
   请注意,所有 issue 必须由 https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn 创建,不然将会被直接关闭。
   Issues 中不要问「如何使用 ECharts 实现……功能」的问题,相关问题请到 SegmentFault 或 Stack Overflow 提问,详见上面的链接。
   -->
   
   This issue is not created by [echarts-issue-helper](https://ecomfe.github.io/echarts-issue-helper) and will be soon closed.
   
   仪表盘刻度显示问题,在仪表盘设置刻度的distance为负数的时候仪表盘刻度显示不在同一曲线上
   【代码】
   option = {
       tooltip : {
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               restore: {},
               saveAsImage: {}
           }
       },
       series: [
           {
               name: '业务指标',
               type: 'gauge',
               startAngle: 180,
               endAngle: 0,
               axisLabel:{
                   show: true,
                   distance: -45,
                   color: '#727586',
               },
               detail: {formatter:'{value}%'},
               data: [{value: 50, name: '完成率'}]
           }
       ]
   };
   【效果】
   由于公司网络限制,无法上传图片,
   只能文字阐述抱歉,可将上面代码复制到官方demo地址
   https://echarts.baidu.com/examples/editor.html?c=gauge
   可明显看到10,20,30以及70,80,90,100与刻度盘的距离相比40,50,60间距较小了不少
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org