How to set the colors of two lines separately by echarts markline

option = {

xAxis: {
    type: "category",
    data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
},
yAxis: {
    type: "value"
},
series: [{
    
    data: [820, 932, 901, 934, 1290, 1330, 1320],
    type: "line",
    markLine: {
        itemStyle: {
            normal: { lineStyle: { type: "solid", color: "-sharp000" }, label: { show: true, position: "end" } },
        },
        data: [
            {
                name: "",
                //  "average", "min", "max"
                type: "average"
            },
            {
                name: "Y  100 ",
                yAxis: 100
            }
        ]
    },
}]

};

clipboard.png

May.22,2021

about the solution, the comments in the code are explained
   

if it is set separately and does not take effect, what to do

Menu