修改echarts选中时的导航文字颜色

 在legend对象里面加inactiveColor能改变echarts图例选中时的颜色 。



  //导航文字的布局方式及位置
    legend: {
    type:'plain',
    orient:'horizontal',//竖着orient横着horizontal
    align:'auto',
    top:'2',
    padding: [
    0,  // 上
    20, // 右
    5,  // 下
    20, // 左
],
        data: legendData ,
        "inactiveColor" : "#999",
    },

猜你喜欢

转载自blog.csdn.net/baidu_38027860/article/details/80118249