柱状图 渐变

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

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} 
{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"], } ] },

你可能感兴趣的:(echarts,echarts)