260312_01_ENH: API_DECIMAL_POINT, VIEW_DECIMAL_POINT 적용, 스택 차트 색상 변경, 그룹 스택 차트 하단에 연도 레이블 출력, Total 페이지 설명문 수정
This commit is contained in:
@@ -6,7 +6,7 @@ import type { ChartData, SignStyle, TopChartTableRow } from "../types";
|
||||
import SectionTitle from "../SectionTitle";
|
||||
import { CHART_HEIGHTS, TABLE_DIMENSIONS } from "@/const/chartConst";
|
||||
import {UNIT_TEXT} from "@/const/lgConst";
|
||||
import {isCagrRow} from "@/lib/lg-dashboard";
|
||||
import {isCagrRow, roundNumber} from "@/lib/lg-dashboard";
|
||||
|
||||
export type TopChartTableProps = {
|
||||
title?: string;
|
||||
@@ -128,7 +128,7 @@ export default function TopChartTable(props: TopChartTableProps) {
|
||||
|
||||
{categories.map((_, ci) => {
|
||||
const raw = r.values?.[ci];
|
||||
const n = parseNumber(raw);
|
||||
const n = roundNumber(parseNumber(raw));
|
||||
|
||||
// 일반 행
|
||||
if (!isSignRow) {
|
||||
@@ -136,6 +136,7 @@ export default function TopChartTable(props: TopChartTableProps) {
|
||||
|
||||
const isFill = fillCAGR && cagrRow && total && n > total + 5;
|
||||
const txt = n.toLocaleString();
|
||||
|
||||
return <td key={ci} className={cn(isFill? "bg-red-200" :"")}>{txt}</td>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user