260518_04_ENH: Gap 연산 시 반올림 후 진행하도록 수정

This commit is contained in:
2026-05-18 17:11:38 +09:00
parent 972d5baef5
commit dd95d04298
5 changed files with 18 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ TopChartTableSectionRow
import {ChartData} from "../chart/types";
import {CHART_HEIGHTS, TABLE_DIMENSIONS} from "../chart/chart.config";
import type {DataColumn, SignStyle} from "@/components/table/types";
import { CUSTOMER_SATISFACTION_DECIMAL_PLACES } from "@/config/kfpa.config";
import { KFPA_DECIMAL_POINT } from "@/config/kfpa.config";
export type TopChartTableProps = {
title?: string;
@@ -122,7 +122,7 @@ const resolvedSignStyle = resolveSignStyle(signStyle, {
negativeTextClassName: "kfpa-num-neg",
zeroTextClassName: "",
arrowWithNumber: true,
valueFormatter: (value) => value.toFixed(CUSTOMER_SATISFACTION_DECIMAL_PLACES),
valueFormatter: (value) => value.toFixed(KFPA_DECIMAL_POINT),
});
const maxPreAppendCellCount = useMemo(
@@ -248,7 +248,7 @@ return (
{columns.map((column, categoryIndex) => {
const rawValue = row.values?.[categoryIndex];
const decimalPlaces = row.decimalPlaces ?? CUSTOMER_SATISFACTION_DECIMAL_PLACES;
const decimalPlaces = row.decimalPlaces ?? KFPA_DECIMAL_POINT;
const roundedValue = toRoundedNumber(rawValue, decimalPlaces);
if (roundedValue === null) {