series: [
{
name: '温度',
type: 'line', // 设置数据显示类型,分为line,bar,pie
itemStyle: {
color: '#17FF38' // 线条的颜色
},
data: [92, 100, 110, 15, 16, 14,89, 10, 110, 65, 60, 74,92, 100, 110, 105, 16, 34,20,30], // 温度的数据
markLine: {
// symbol: ['none', 'none'],//去掉箭头
itemStyle: {
normal: {
lineStyle: { //全局的样式
type: 'solid',
width: 2 // 线条高度
},
}
},
data: [
{
yAxis: 100,
itemStyle: {
normal: { color: 'red' }
},
label: { // 线条提示字体
show: true,
position:'end',
formatter: '越限上线',
color: '#ff3040'
}
},
{
yAxis: 20,
itemStyle: {
normal: {
color: 'blue'
}
},
label: {
show: true,
position:'end',
formatter: '越限下线',
color: '#ff3040'
}
}
]
}
}
]
Echart警戒线
最新推荐文章于 2024-03-14 14:11:25 发布