master
unknown 2024-06-04 09:40:36 +08:00
parent 52a1dbdc83
commit 34e4f61485
2 changed files with 729 additions and 35732 deletions

36439
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -239,15 +239,19 @@ export default {
xAxis.push(key)
seriesData.push(resData[key])
})
const max = Math.max(...seriesData)
// const max = Math.max(seriesData)
// console.log(seriesData);
// if (max > 5) {
// let maxN = Math.ceil(max / 5) * 5
// maxN = maxN === 0 ? 5 : maxN
// console.log(maxN);
// this.opts.yAxis.data[0].max = 100
// this.opts.yAxis.data[0].min = 0
// } else {
// console.log(max);
// this.opts.yAxis.splitNumber = max
// }
if (max > 5) {
let maxN = Math.ceil(max / 5) * 5
maxN = maxN === 0 ? 5 : maxN
this.opts.yAxis.data[0].max = maxN
} else {
this.opts.yAxis.splitNumber = max
}
let res = {
categories: xAxis,