细节调整

This commit is contained in:
kerwincui
2022-06-14 21:07:09 +08:00
parent a640f3f17e
commit e32153c222

View File

@@ -806,22 +806,20 @@ export default {
data: ['连接数量', '会话数量', '主题数量', '订阅数量', '路由数量', '保留消息'] data: ['连接数量', '会话数量', '主题数量', '订阅数量', '路由数量', '保留消息']
}, },
series: [{ series: [{
name: '历史最大数',
type: 'bar',
data: [this.stats["connections.max"], this.stats["sessions.max"], this.stats["topics.max"], this.stats["subscribers.max"], this.stats["routes.max"], this.stats["retained.max"]],
itemStyle: {
color: '#409EFF'
}
},
{
name: '当前数量', name: '当前数量',
type: 'bar', type: 'bar',
data: [this.stats["connections.count"], this.stats["sessions.count"], this.stats["topics.count"], this.stats["subscribers.count"], this.stats["routes.count"], this.stats["retained.count"]], data: [this.stats["connections.count"], this.stats["sessions.count"], this.stats["topics.count"], this.stats["subscribers.count"], this.stats["routes.count"], this.stats["retained.count"]],
itemStyle: { itemStyle: {
color: '#67C23A' color: '#67C23A'
} }
}, {
name: '历史最大数',
type: 'bar',
data: [this.stats["connections.max"], this.stats["sessions.max"], this.stats["topics.max"], this.stats["subscribers.max"], this.stats["routes.max"], this.stats["retained.max"]],
itemStyle: {
color: '#409EFF'
} }
] }]
}; };
option && myChart.setOption(option); option && myChart.setOption(option);