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

@@ -1,10 +1,3 @@
/**
* 차트 관련 상수 정의
* - 차트 높이, Bar 너비, Grid 설정 등
*/
import {GAP_WORDING} from "@/const/lgConst";
/**
* 차트 기본 높이 설정
*/
@@ -52,56 +45,6 @@ export const LEGEND_ITEM_SIZE = {
RADIUS: 4,
} as const;
/**
* 색상 팔레트 설정
*/
export const CHART_COLOR_PALETTES = {
/** 연도별 트렌드 역순 (최신->과거) */
YEAR_TREND_REVERSE: ["--chart-3", "--chart-2", "--chart-1"],
/** LG Red 계열 */
LG_RED_SCALE: ["--lg-red-300", "--lg-red-400", "--lg-red-500"],
/** 연도별 전체 색상 */
YEAR_TOTAL: {
"24": "--chart-total-1",
"25": "--chart-total-2",
"26": "--chart-total-3",
} as const,
/** 연도별 LG 색상 */
YEAR_LG: {
"24": "--chart-lg-1",
"25": "--chart-lg-2",
"26": "--chart-lg-3",
} as const,
/** 연도별 브랜드 색상 (CBrand, Samsung, LG) */
YEAR_BRAND: {
"24": ["--chart-cbrand-1", "--chart-samsung-1", "--chart-lg-1"],
"25": ["--chart-cbrand-2", "--chart-samsung-2", "--chart-lg-2"],
"26": ["--chart-cbrand-3", "--chart-samsung-3", "--chart-lg-3"],
} as const,
} as const;
/**
* 테이블 색상 설정
*/
export const TABLE_COLORS = {
/** 게이지 테이블 색상 */
GAUGE: {
FILL: "hsl(var(--lg-gray-200) / 0.85)",
TRACK: "hsl(var(--lg-pink-300) / 0.2)",
},
/** Sign 표기 셀 배경색 */
SIGN_CELL: {
POSITIVE: "hsl(var(--primary) / 0.08)",
NEGATIVE: "hsl(var(--info) / 0.08)",
ZERO: "hsl(var(--lg-gray-200) / 0.6)",
},
} as const;
/**
* 테이블 크기 설정
*/
@@ -116,26 +59,4 @@ export const TABLE_DIMENSIONS = {
COMPACT: 1200,
WIDE: 2000,
},
} as const;
/**
* 차트/테이블 라벨 텍스트
*/
export const CHART_LABELS = {
TOTAL: "전체",
LG: "LG",
GAP: GAP_WORDING,
CAGR: "CAGR(%p)",
SAMPLE_COUNT: "(사례수)",
} as const;
/**
* 차트 제목 텍스트
*/
export const CHART_TITLES = {
LG_PENETRATION: "LG제품 보급률",
TOTAL_PENETRATION: "전체 보급률",
LG_PURCHASE: "LG제품 구매율",
TOTAL_PURCHASE: "전체 구매율",
BRAND_SHARE: "브랜드별 점유율",
} as const;
} as const;