260331_01_ENH: CAGR 셀 색칠 기준 5초과에서 5이상으로 변경 #5
@@ -122,7 +122,7 @@ export default function TopChartTable({
|
|||||||
return <td key={categoryIndex}>-</td>;
|
return <td key={categoryIndex}>-</td>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const shouldFillCell = fillCAGR && cagrRow && rowTotal !== null && roundedValue > rowTotal + 5;
|
const shouldFillCell = fillCAGR && cagrRow && rowTotal !== null && roundedValue >= rowTotal + 5;
|
||||||
return <td key={categoryIndex} className={cn(shouldFillCell ? "bg-red-200" : "")}>{roundedValue.toLocaleString()}</td>;
|
return <td key={categoryIndex} className={cn(shouldFillCell ? "bg-red-200" : "")}>{roundedValue.toLocaleString()}</td>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user