fix: 为管理员分析面板图表添加独立的多 Y 轴支持
continuous-integration/drone/push Build is passing

This commit is contained in:
seahi committed 2026-09-25 09:30:53 +08:00
1 parent e66b623353
commit d894a486ca
1 file changed
+16 -2
+16 -2
View File
@@ -69,7 +69,8 @@
borderColor: '#333',
backgroundColor: 'rgba(0,0,0,0.05)',
tension: 0.3,
fill: true
fill: true,
yAxisID: 'y'
},
{
label: '缓存命中数',
@@ -77,7 +78,8 @@
borderColor: '#4caf50',
backgroundColor: 'rgba(76, 175, 80, 0.1)',
tension: 0.3,
fill: true
fill: true,
yAxisID: 'y1'
}
]
},
@@ -96,7 +98,19 @@
},
scales: {
y: {
type: 'linear',
display: true,
position: 'left',
beginAtZero: true
},
y1: {
type: 'linear',
display: true,
position: 'right',
beginAtZero: true,
grid: {
drawOnChartArea: false
}
}
}
}