markPoint标注 markLine标线
series:[{
name:'日配注水量',
type:'bar',
yAxisIndex:0,
data:waterAllocation,
itemStyle: { //拐点显示值
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: 'black',
fontSize: 16
}
}
}
},
markPoint:{
data:[
{type:'max',name:'最大值'},
{type:'min',name:'最小值'}
]
},
markLine:{
data:[
{type:'average',name:'平均值'}
]
}
}]