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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b386a7-2c0f2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b386a7-2c0f2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?