echarts 雷达圆形图

效果图:
在这里插入图片描述

代码:

option =  {
    legend: {
      data: ['分析']
    },
    graphic: [
      {
        type: 'group',
        left: 'center',
        top: 'center',
        children: [
          {
            type: 'text',
            z: 2,
            left: 'center',
            top: 'center',
            style: {
              text: '85',
              fontSize: 50,
              fontWeight: 'bold',
              fill: '#55d5f9'
            }
          }
        ]
      },
      {
        type: 'group',
        left: '57%',
        top: '51%',
        children: [
          {
            type: 'text',
            z: 2,
            left: 'center',
            top: 'center',
            style: {
              text: '分',
              fontSize: 14,
              fill: '#55d5f9'
            }
          }
        ]
      }
    ],
    radar: {
      shape: 'circle',
      indicator: [
        { name: '设备完好率', max: 100, axisLine: { lineStyle: { color: '#18c7fe', type: 'dashed' } }, nameGap: 5 },
        { name: '报警处置率', max: 100, axisLine: { lineStyle: { color: '#f78a8a', type: 'dashed' } }, nameGap: 5 },
        { name: '设备巡检率', max: 100, axisLine: { lineStyle: { color: '#f2d43d', type: 'dashed' } }, nameGap: 5 },
        { name: '人员管理', max: 100, axisLine: { lineStyle: { color: '#ff9ed1', type: 'dashed' } }, nameGap: 5 },
        { name: '设备管理', max: 100, axisLine: { lineStyle: { color: '#cd9dfe', type: 'dashed' } }, nameGap: 5 },
        { name: '预案管理', max: 100, axisLine: { lineStyle: { color: '#c0c0c0', type: 'dashed' } }, nameGap: 5 }
      ],
      radius: 120,
      startAngle: 90,
      splitNumber: 3,
      splitLine: {
        show: true,
        lineStyle: {
          color: ['#63c2ff'],
          type: 'dashed'
        }
      },
      splitArea: {
        //show: false,
        areaStyle: {
          color: ['#0f4154', '#0f4154', '#0f4154'],
          shadowColor: '#32dadd',
          shadowBlur: 10
        }
      },
      axisLine: {
        lineStyle: {
          color: '#63c2ff',
          type: 'dashed'
        }
      },
      boundaryGap: true
    },
    series: [
      {
        name: '',
        type: 'radar',
        data: [
          {
            name: '',
            value: [85, 90, 80, 83, 78, 70],
            areaStyle: {
              color: '#32dadd'
            }
          }
        ]
      }
    ]
  };

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值