Browse Source

fix(update): update s-curve like

pull/1/head
farhantock 7 months ago
parent
commit
7db4bd0364
  1. 6
      view-mode/function/overlaySCurve.js

6
view-mode/function/overlaySCurve.js

@ -128,12 +128,16 @@ function getProgressLine() {
realDurations = cumulativeRealDurations;
}
if (Math.floor(maxReal) > 100 || Math.floor(maxPlan) > 100) {
if (Math.floor(maxReal) > 110 || Math.floor(maxPlan) > 110) {
plannedDurations = plannedDurations.map((item) => {
return item / maxPlan * 100;
})
realDurations = realDurations.map((item) => {
if (maxPlan >= 200) {
return item / maxPlan * 100;
} else {
return item / maxReal * 100;
}
})
}

Loading…
Cancel
Save