260319_01_ENH: 17일자 수정사항 적용

This commit is contained in:
2026-03-19 14:05:19 +09:00
parent c66b51ca53
commit b2cf1b846f
13 changed files with 115 additions and 19 deletions

View File

@@ -1,5 +1,6 @@
import { CHART_GRID_DEFAULTS, BAR_WIDTHS } from "@/const/chartConst";
import {ChartData, NewNumber} from "@/components/lge-dashboard";
import {AXIS_HIDE_Y_STYLE} from "@/const/lgConst";
export function reverseCategories<T extends ChartData>(data: T): T {
const categories = [...data.categories].reverse();
@@ -180,9 +181,7 @@ export function createValueAxis(
if (hideStyle) {
return {
...base,
axisLabel: { show: false },
axisTick: { show: false },
axisLine: { show: false },
...AXIS_HIDE_Y_STYLE,
splitLine: { show: false },
...overrides,
};

View File

@@ -469,7 +469,7 @@ export const makeTotalBasePct = (t:number|string, f:number|string):number => {
export const calcTotalBaseRow = (label:string, totalRow: ProductRow, targetRow: ProductRow): ProductRow => {
const out: ProductRow = {
year: targetRow?.year ?? "",
rowLabel: `전체 ${label} 중 자사제품 비율`,
rowLabel: `조사 년도 ${label} 중 자사제품 비율`,
total: fixedDecimalPoint(makeTotalBasePct(totalRow.total, targetRow.total))
};