echarts的图例更改颜色

找到legend配置项,加入textStyle字符串里面加入color

legend:{
    
    
    textStyle:{
    
    
      color:'rgb(255,255,255,0.9)'
     }
}

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42821697/article/details/124735751