echarts设置饼图标示线以及标示文字的颜色等相关样式

在series字段中增加以下属性,注意要在series字段属性中增加

labelLine:{  
     normal:{  
          length:5,  // 改变标示线的长度
          lineStyle: {
             color: "red"  // 改变标示线的颜色
          }
     },
},
label: {
     normal: {
          textStyle: {
                color: 'red'  // 改变标示文字的颜色
          }
     }
},

效果如图:

猜你喜欢

转载自blog.csdn.net/weixin_39003573/article/details/81842367