柱状图 渐变

机器人运行情况
参考文章:
柱状图 渐变

robotOperData: {
          title:[
            {
              //text: '总数',
              //subtext: 3,
              textStyle:{
                fontSize:12,
                color:"black"
              },
              subtextStyle: {
                fontSize: 12,
                color: 'black'
              },
              textAlign:"center",
              //总数距左边的百分比
//              x: '27%',
//              y: '40%',
            }
          ],
          //删除此对象就没有了抽屉这个效果
          tooltip: {
            trigger: "item",
            formatter: "{a} <br/>{b}",
            backgroundColor: '#060606'
          },
          legend: {
            itemWidth:16,
            itemHeight:8,
            itemGap:5,
            //右边小标题距离左边的百分比
            left:'60%',
            top:'middle',
            align:'left',
            orient: 'vertical',
            //x: "left",
            //data: ['运行中', '成功','失败'],
          },
          series: [
            {
              //data: [10,20,30,40,50,60],
              data: [],
              //是否开启 hover 在扇区上的放大动画效果。
              hoverAnimation:true,
              name: "机器人运行情况",
              type: "pie",
              //整个饼状图距离左边的距离
              center: ['40%', '50%'],
              radius: ["30%", "60%"],
              avoidLabelOverlap: true,
              label: {
                normal: {
                  show: false,
                  //position: "center",
                  position: 'outter',
                },
                emphasis: {
                  show: false,
                  textStyle: {
                    fontSize: "12",
                    fontWeight: "bold"
                  },
                }
              },
              labelLine: {
                normal: {
                  show: false
                }
              },
              color:["#FF940F","#14B700","#F74634","#2890FF","#9602C6","#0D1D72"],
            }
          ]
        },
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值