您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

饼状图--只有一个指标

 直接将下面的放入 

https://gallery.echartsjs.com/editor.html?c=xBy9Gn_x99  就可以了  进行调试 

option = {
    
            title: {
              text: '我是',x: 'center''normal''20'
              }
            },//那个指标
            legend: {
              show: true'已使用0']
            },series: [{
              type: 'pie'true,//饼图的扇区是否是顺时针排布。 
              radius: ['50%','66%'],1)">//调节宽度的大小
              itemStyle: {
                normal: {
                  label: {
                    show: false
                  },labelLine: {
                    show: 
                  }
                }
              },hoverAnimation: '已使用0' 完成的圆环的颜色
                      colorStops: [{
                        offset: 0 0% 处的颜色
                      },{
                        offset: 1 100% 处的颜色
                      }]
                    },label: {
                      show: 
                    },labelLine: {
                      show: 
                    }
                  }
                }
              }]
            }]
        };

 

 


联系我
置顶