echarts-三个环形图+副标题

option = {
  title: [{
      text:'标题一', //\n是换行
      subtext: '副标题一',
      textStyle:{
          fontSize:35,//标题字体
      },
      left: '16.67%', 
      fontWeight:'bold',
      subtextStyle: {
          fontSize:25, //副标题字体
      },
      top: '5%',
      textAlign: 'center',
  }, {
      text:'标题二',
      subtext: '副标题二',
      textStyle:{
          fontSize:35,
      },
      left: '50%',
      top: '5%',
      subtextStyle: {
          fontSize:25,
      },
      textAlign: 'center'
  }, {
      text:'标题三',
      subtext: '副标题三',
      textStyle:{
          fontSize:35,
      },
      left: '83.33%',
      top: '5%',
      subtextStyle: {
          fontSize:25,
      },
      textAlign: 'center'
  }],
  color:['#57D69B','#527FF7'],
  legend:[
      {
          top: '85%',
          left: '6%',
          data: ['已达标', '未达标'],
          textStyle: {
            fontSize: 25
          },
      }, {
          top: '85%',
          left: '41%',
          data: ['已达标', '未达标'],
          textStyle: {
            fontSize: 25
          },
      },
      {
          top: '85%',
          left: '73%',
          data: ['已达标', '未达标'],
          textStyle: {
            fontSize: 25
          },
      } 
  ],
  series: [{
      type: 'pie',
      radius: ['50%', '80%'],
      center: ['50%', '50%'],
      data: [{
          name: '已达标',
          value: 70
      }, {
          name: '未达标',
          value: 35
      }],
      label: {
          show: true,
          position:'inner',
          formatter: " {c}% ",
          textStyle: {
            fontSize: 20
          },
      },
      left: 0,
      right: '66.6667%',
      top: 0,
      bottom: 0
  }, {
      type: 'pie',
      radius:  ['50%', '80%'],
      center: ['50%', '50%'],
      data: [{
          name: '已达标',
          value: 50
      }, {
          name: '未达标',
          value: 58
      }],
      label: {
          show: true,
          position:'inner',
          formatter: " {c}% ",
          textStyle: {
            fontSize: 20
          },
      },
      left: '33.3333%',
      right: '33.3333%',
      top: 0,
      bottom: 0
  }, {
      type: 'pie',
      radius: ['50%', '80%'],
      center: ['50%', '50%'],
      data: [{
          name: '已达标',
          value: 20
      }, {
          name: '未达标',
          value: 88
      }],
      label: {
          show: true,
          position:'inner',
          formatter: " {c}% ",
          textStyle: {
            fontSize: 20
          },
      },
      left: '66.6667%',
      right: 0,
      top: 0,
      bottom: 0
  }]
};

效果图如下:

打开如下链接,复制代码,替换下就行

zhttps://echarts.apache.org/examples/zh/editor.html?c=pie-alignToicon-default.png?t=L9C2https://echarts.apache.org/examples/zh/editor.html?c=pie-alignTo

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值