修改禅道bug

This commit is contained in:
GGJ
2024-09-30 11:08:35 +08:00
parent 83af279826
commit 5befa69299
13 changed files with 70 additions and 55 deletions

View File

@@ -119,7 +119,7 @@ const init = () => {
res.data.forEach((item: any[]) => {
arr.push(...item)
})
let [min, max, interval] = yMethod(arr.map((item: any) => item.statisticalData))
let [min, max] = yMethod(arr.map((item: any) => item.statisticalData.toFixed(2)))
echartsData.value = {
options: {
grid: {
@@ -132,7 +132,7 @@ const init = () => {
series: res.data.map((item: any) => {
return {
data: item.map((item: any, i: any) => {
return [res.data[0][i].time, item.statisticalData]
return [res.data[0][i].time, item.statisticalData.toFixed(2)]
}),
// data: [
// [1584086222000, '573'],
@@ -189,7 +189,7 @@ const init = () => {
min: min,
max: max,
// interval:interval,
splitNumber:5
// min: 134,
// max: 500,
// min: Math.ceil(