The markline of echarts uses the y-axis warning line (echarts needs to specify the data plus a line)

In plain language, echarts need to specify data plus a line

In fact, although it is exhausting to change the project,

But every time I lead a new idea, it still gives me some inspiration, ha ha ha ha ha

 

 

 

markLine : {
                symbol:"none",
            
                           /*symbol:"none",               //去掉警戒线最后面的箭头
                           label:{
                               position:"end"   ,       //将警示值放在哪个位置,三个值“start”,"middle","end"  开始  中点 结束
                            
                            
                           },*/
                           data : [{
                                
                               silent:false,             //鼠标悬停事件  true没有,false有
                               lineStyle:{               //警戒线的样式  ,虚实  颜色
                                   type:"solid",
                                   color:"#3398DB",
                               },
                                   label:{
                                   position:'end',
                                   formatter:"及格(150)"
                               },
                               yAxis:150         // 警戒线的标注值,可以有多个yAxis,多条警示线   或者采用   {type : 'average', name: '平均值'},type值有  max  min  average,分为最大,最小,平均值
                              
                           },
                           {
                             
                               silent:false,             //鼠标悬停事件  true没有,false有
                               lineStyle:{               //警戒线的样式  ,虚实  颜色
                                   type:"solid",
                                   color:"#FA3934",
                                    
                               },
                               label:{
                                   position:'end',
                                   formatter:"优秀(350)",
                                   fontSize:'8'
                               },
                               yAxis:350           // 警戒线的标注值,可以有多个yAxis,多条警示线   或者采用   {type : 'average', name: '平均值'},type值有  max  min  average,分为最大,最小,平均值
                         
                           }
                           ]
                       }  

 

Published 248 original articles · Like 602 · Visit 1.08 million +

Guess you like

Origin blog.csdn.net/qq_32963841/article/details/105044665