mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-12 14:54:34 +08:00
Fix: chart max error
This commit is contained in:
parent
e82ab043cf
commit
a9833f47f0
@ -23,7 +23,11 @@ watch(state, () => {
|
||||
const v = source[key] as JsonData;
|
||||
v.time = `${MAX_TIME - Number(key) * 1} MIN`;
|
||||
}
|
||||
const max = Math.max(...source.map((v) => v.value));
|
||||
chart.setOption({
|
||||
yAxis: {
|
||||
max
|
||||
},
|
||||
dataset: {
|
||||
dimensions: ["time", "value"],
|
||||
source
|
||||
|
Loading…
Reference in New Issue
Block a user