260312_01_ENH: API_DECIMAL_POINT, VIEW_DECIMAL_POINT 적용, 스택 차트 색상 변경, 그룹 스택 차트 하단에 연도 레이블 출력, Total 페이지 설명문 수정

This commit is contained in:
2026-03-12 13:28:21 +09:00
parent 75153ff02e
commit 41a8e2abb2
20 changed files with 192 additions and 180 deletions

View File

@@ -3,6 +3,7 @@
import React, { useMemo } from "react";
import { cn, parseNumber } from "@/lib/utils";
import {GaugeColumn} from "../types";
import {roundNumber} from "@/lib/lg-dashboard";
type Props<T extends Record<string, unknown>> = {
columns: GaugeColumn<T>[];
@@ -81,7 +82,7 @@ const GaugeTable = <T extends Record<string, unknown>>({
return res;
}, [columns, hasGroup]);
const fmt = valueFormatter ?? ((v: number) => String(Math.round(v)));
const fmt = valueFormatter ?? ((v: number) => String(roundNumber(v)));
const clamp01 = (n: number) => Math.max(0, Math.min(1, n));