feat 监控大屏

This commit is contained in:
duanliang
2024-12-16 17:28:17 +08:00
parent 6c9140aba1
commit 897d91a9c6

View File

@@ -257,19 +257,22 @@
left: '3%', left: '3%',
right: '4%', right: '4%',
bottom: '20%', bottom: '20%',
containLabel: true containLabel: true,
show:false,
}, },
xAxis: [ xAxis: [
{ {
nameLocation: 'middle', nameLocation: 'middle',
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: true,
axisLabel: { axisLabel: {
fontSize:10, fontSize:10,
interval: 0, // 显示所有标签 interval: 0, // 显示所有标签
rotate: 0, // 旋转标签45度 rotate: 0, // 旋转标签45度
}, },
minorTisk:{
show:false,
},
data: ['10:00', '10:00', '10:00', '10:00', '10:00', '10:00', '10:00', '10:00'], data: ['10:00', '10:00', '10:00', '10:00', '10:00', '10:00', '10:00', '10:00'],
axisTisk:{ axisTisk:{
alignWithLabel: true, alignWithLabel: true,
@@ -285,10 +288,12 @@
], ],
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
min:0, min:0,
max:45, max:45,
interval:15, interval:15,
axisLabel: { axisLabel: {
fontSize: 12 ,// 设置Y轴刻度字体大小 fontSize: 12 ,// 设置Y轴刻度字体大小
color: 'rgba(255,255,255,0.9)', color: 'rgba(255,255,255,0.9)',
@@ -301,20 +306,16 @@
color:'#00D0FF' color:'#00D0FF'
} }
}, },
axisLine: {
show: false
},
axisTick: {
show: false
},
axisLabel: {
color: '#999'
}
} }
], ],
series: [ series: [
{ {
itemStyle: {
// 设置柱状图颜色
color: '#0D53FF'
},
name: '三峡之巅', name: '三峡之巅',
type: 'bar', type: 'bar',
stack: 'Ad', stack: 'Ad',
@@ -331,6 +332,10 @@
emphasis: { emphasis: {
focus: 'series' focus: 'series'
}, },
itemStyle: {
// 设置柱状图颜色
color: '#05FFB9'
},
data: [20, 5, 14, 14, 0, 20, 11,2] data: [20, 5, 14, 14, 0, 20, 11,2]
}, },
{ {
@@ -340,6 +345,10 @@
emphasis: { emphasis: {
focus: 'series' focus: 'series'
}, },
itemStyle: {
// 设置柱状图颜色
color: '#FFCB39'
},
data: [15, 20, 8, 19, 20, 5, 22,13] data: [15, 20, 8, 19, 20, 5, 22,13]
}, },