sonar qube; ternary if
This commit is contained in:
@@ -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