如何在得分图上设置牵引线呢

option = {
  graphic: [
    {
      type: 'text',
      left: 'center',
      top: '30%',
      style: {
        text: '48569',
        textAlign: 'center',
        fill: '#c9eff5',
        fontSize: 36,
        width: 30,
        height: 30,
        color: '#c9eff5'
      }
    },
    {
      type: 'text',
      left: 'center',
      top: '50%',
      style: {
        text: '总数',
        textAlign: 'center',
        fill: '#c9eff5',
        width: 30,
        height: 30,
        fontSize: 36,
        color: '#c9eff5'
      }
    }
  ],
  series: [
    {
      type: 'gauge',
      startAngle: 0,
      endAngle: -360,
      color: ['#01fefd', '#00bafe', '#0282ff', '#0054fd', '#342afd'],
      pointer: {
        show: false
      },
      progress: {
        show: true,
        overlap: false,
        roundCap: false,
        clip: true,
        itemStyle: {
          borderWidth: 1,
          borderColor: '#464646'
        }
      },
      axisLine: {
        lineStyle: {
          width: 40,
          opacity: 0
        }
      },
      splitLine: {
        show: false,
        distance: 0,
        length: 10
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        show: false,
        distance: 50
      },
      data: [
        {
          value: 62.6,
          name: '1',
          title: {
            //仪表盘标题
            offsetCenter: ['110%', '-55%'],
            color: '#01fefd',
            fontSize: 16
          },
          detail: {
            offsetCenter: ['160%', '-55%'],
            color: '#01fefd',
            fontSize: 16
          }
        },
        {
          value: 55.69,
          name: '2',
          title: {
            //仪表盘标题
            offsetCenter: ['110%', '-35%'],
            color: '#00bafe',
            fontSize: 16
          },
          detail: {
            offsetCenter: ['160%', '-35%'],
            color: '#00bafe',
            fontSize: 16
          }
        },
        {
          value: 41,
          name: '3',
          title: {
            //仪表盘标题
            offsetCenter: ['110%', '-15%'],
            color: '#0282ff',
            fontSize: 16
          },
          detail: {
            offsetCenter: ['160%', '-15%'],
            color: '#0282ff',
            fontSize: 16
          }
        },
        {
          value: 44.68,
          name: '4',
          title: {
            //仪表盘标题
            offsetCenter: ['110%', '5%'],
            color: '#0054fd',
            fontSize: 16
          },
          detail: {
            offsetCenter: ['160%', '5%'],
            color: '#0054fd',
            fontSize: 16
          }
        },
        {
          value: 38.8,
          name: '5',
          title: {
            //仪表盘标题
            offsetCenter: ['110%', '20%'],
            color: '#342afd',
            fontSize: 16
          },
          detail: {
            offsetCenter: ['160%', '20%'],
            color: '#342afd',
            fontSize: 16
          }
        }
      ],
      title: {
        fontSize: 14,
        show: true
      },
      detail: {
        show: true,
        fontSize: 16,
        color: 'auto',
        formatter: '{value}%'
      }
    }
  ]
};


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值