坐标轴颜色设置echarts 折线配置项内容和展示

配置项如下
      option = {
    title: {
        text: 'Awesome Chart'
    },
    xAxis: {
        data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
    },
    yAxis: {
        scale: true,
        axisLabel: {
            textStyle: {
                color: function(val) {
                    if (val > 2500) {
                        return 'red';
                    }
                    else {
                        return 'green';
                    }
                }
            }
        }
    },
    series: [{
        type: 'line',
        data:[2200, 1820, 1910, 2340, 2900, 3300, 3100]
    }]
};
    
截图如下