Could you tell me how to send background data to markline??

problem description

as mentioned in the question, how does the markline of echarts obtain background data? The data has been passed into the page but you don"t know which item of data you want to assign to markline?

the environmental background of the problems and what methods you have tried

echarts official documents are full of dead data. I want to use Markline to mark a data line. This line can get data refreshed from the background, not written dead. The data has been calculated, but I don"t know which item of data in the data page. Echarts did not explain it, and the online blog can not find a way.

related codes

/ / Please paste the code text below (do not replace the code with pictures)
function requestAverangeData7 () {

$.ajax({
    type:"POST",
    url:"/third/averangeLine",
    data:{"areaSrc":1005},
    success:function (datas) {
        var datas=JSON.parse(datas);
        if(datas.state="success"){
        //averange
            option7.series[0].markLine.data=datas.message.averange;
            myChart7.setOption(option7);
        }
    },error:function(err)
    {
        console.error(err);
    }
});

what result do you expect? What is the error message actually seen?

which god will take a look at how to transmit the data? thank you

Dec.17,2021
Menu