sonar qube; ternary if
This commit is contained in:
1 parent
6a689e419c
commit
07d6e75a6a
4 files changed
+13
-69
No files matched your search
@@ -45,7 +45,13 @@ export function setLineChartData(baseData, xMax, xMin, isPercent, yMax, yMin) {
|
||||
mf = mf >= 1 ? 1 : mf <= 0 ? 0 : mf;
|
||||
}
|
||||
else {
|
||||
mf = mf >= yMax ? yMax : mf <= yMin ? yMin : mf;
|
||||
if (mf >= yMax) {
|
||||
mf = yMax;
|
||||
} else if (mf <= yMin) {
|
||||
mf = yMin;
|
||||
} else {
|
||||
mf = mf;
|
||||
}
|
||||
}
|
||||
|
||||
// 添加最小值
|
||||
|
||||
Reference in new issue
Block a user