master
parent
52a1dbdc83
commit
34e4f61485
File diff suppressed because it is too large
Load Diff
|
|
@ -239,15 +239,19 @@ export default {
|
||||||
xAxis.push(key)
|
xAxis.push(key)
|
||||||
seriesData.push(resData[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 = {
|
let res = {
|
||||||
categories: xAxis,
|
categories: xAxis,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue