Ian*_*ong 5

是的,您可以在选项中自定义它yAxis.splitLine.lintStyle.color

yAxis : [
    {
        type : 'value',
        splitLine: {
            lineStyle: {
                color: 'blue'
            }
        }
    }
],
Run Code Online (Sandbox Code Playgroud)

而更详细的

检查这个演示:

yAxis : [
    {
        type : 'value',
        splitLine: {
            lineStyle: {
                color: 'blue'
            }
        }
    }
],
Run Code Online (Sandbox Code Playgroud)
let echartsObj = echarts.init(document.querySelector('#canvas'));
 
option = {
    color: ['#3398DB'],
    xAxis : [
        {
            type : 'category',
            data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
        }
    ],
    yAxis : [
        {
            type : 'value',
            splitLine: {
                lineStyle: {
                    color: 'blue'
                }
            }
        }
    ],
    series : [
        {
            name:'metric',
            type:'bar',
            data:[10, 52, 200, 334, 390, 330, 220]
        }
    ]
};


    echartsObj.setOption(option)
Run Code Online (Sandbox Code Playgroud)