修改测试bug

This commit is contained in:
guanj
2026-02-04 09:35:24 +08:00
parent dd0dab7643
commit 3fdb41c468
21 changed files with 308 additions and 156 deletions

View File

@@ -748,8 +748,10 @@ const initWave = (
rotation: 0,
y: -10
},
max: rmscm[0]?.[1] * 1.06 || 0,
min: rmscu[0]?.[1] - rmscu[0]?.[1] * 0.2 || 0,
// max: rmscm[0]?.[1] * 1.06 || 0,
// min: rmscu[0]?.[1] - rmscu[0]?.[1] * 0.2 || 0,
max: Math.floor((rmscm[0]?.[1] * 1.06 || 0) * 1.1 * 10) / 10,
min: Math.floor((rmscu[0]?.[1] - rmscu[0]?.[1] * 0.2 || 0) * 10) / 10,
boundaryGap: [0, '100%'],
showLastLabel: true,
opposite: false,
@@ -780,11 +782,11 @@ const initWave = (
}
},
grid: {
left: '1%',
left: '60px',
right: '45px',
bottom: '40px',
top: '60px',
containLabel: true
top: '60px'
// containLabel: true
},
dataZoom: [
{
@@ -1077,6 +1079,8 @@ const drawPics = (
boundaryGap: [0, '100%'],
showLastLabel: true,
opposite: false,
// max: Math.floor((rmscm[0]?.[1] * 1.06 || 0) * 1.1 * 10) / 10,
// min: Math.floor((rmscu[0]?.[1] - rmscu[0]?.[1] * 0.2 || 0) * 10) / 10,
nameTextStyle: {
fontSize: '12px',
color: props.DColor ? '#000' : echartsColor.WordColor
@@ -1105,11 +1109,11 @@ const drawPics = (
}
},
grid: {
left: '1%',
left: '60px',
right: '45px',
bottom: '40px',
top: '60px',
containLabel: true
top: '60px'
// containLabel: true
},
dataZoom: [
{

View File

@@ -481,8 +481,10 @@ const initWave = (
},
boundaryGap: [0, '100%'],
showLastLabel: true,
max: max.toFixed(2) * 1.1,
min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
// max: max.toFixed(2) * 1.1,
// min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
max: Math.floor(max.toFixed(2) * 1.1 * 10) / 10,
min: Math.floor(min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1 * 10) / 10 ,
opposite: false,
nameTextStyle: {
fontSize: '12px',
@@ -512,11 +514,11 @@ const initWave = (
}
},
grid: {
left: '1%',
left: '60px',
right: '45px',
bottom: '40px',
top: '60px',
containLabel: true
top: '60px'
// containLabel: true
},
dataZoom: [
{
@@ -789,8 +791,8 @@ const drawPics = (
},
boundaryGap: [0, '100%'],
showLastLabel: true,
max: max.toFixed(2) * 1.1,
min: min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1,
max: Math.floor(max.toFixed(2) * 1.1 * 10) / 10,
min: Math.floor(min.toFixed(2) > 0 ? min.toFixed(2) - min.toFixed(2) * 0.1 : min.toFixed(2) * 1.1 * 10) / 10 ,
opposite: false,
nameTextStyle: {
fontSize: '12px',
@@ -820,11 +822,11 @@ const drawPics = (
}
},
grid: {
left: '1%',
left: '60px',
right: '45px',
bottom: '40px',
top: '60px',
containLabel: true
top: '60px'
// containLabel: true
},
dataZoom: [
{