From d0e1352739021db890162332a55f72c2b1e4c013 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Tue, 10 Feb 2026 15:01:31 +0900 Subject: [PATCH] =?UTF-8?q?260210=5F01=5FENH:=20Reverse=20StackBar=20legen?= =?UTF-8?q?d=20=EB=92=A4=EC=A7=91=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/lge-dashboard/chart/StackBar.tsx | 2 +- src/components/lge-dashboard/combo/CategoryByData.tsx | 1 - src/lib/chart-options.ts | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/lge-dashboard/chart/StackBar.tsx b/src/components/lge-dashboard/chart/StackBar.tsx index 1e429a5..d4e3ebb 100644 --- a/src/components/lge-dashboard/chart/StackBar.tsx +++ b/src/components/lge-dashboard/chart/StackBar.tsx @@ -67,7 +67,7 @@ const StackBar = ({ const option: EChartsOption = useMemo(() => { const fmt = valueFormatter ?? ((v: number) => String(v)); const isV = orientation === "vertical"; - +console.log(isReverse) return { color: palette, tooltip: tooltip ?? (isReverse ? createReverseTooltip(data, fmt) : createDefaultTooltip(fmt)), diff --git a/src/components/lge-dashboard/combo/CategoryByData.tsx b/src/components/lge-dashboard/combo/CategoryByData.tsx index c1c3fa2..c8aef81 100644 --- a/src/components/lge-dashboard/combo/CategoryByData.tsx +++ b/src/components/lge-dashboard/combo/CategoryByData.tsx @@ -116,7 +116,6 @@ const CategoryByData = ({ diff --git a/src/lib/chart-options.ts b/src/lib/chart-options.ts index 56dadc7..d299977 100644 --- a/src/lib/chart-options.ts +++ b/src/lib/chart-options.ts @@ -48,8 +48,8 @@ export function createDefaultLegend( overrides?: any ): any { return { - top: 0, ...overrides, + top: 0, }; } @@ -60,8 +60,8 @@ export function createReverseLegend( const order = originalData.series.map((s) => s.name); return createDefaultLegend({ - data: order, // ✅ legend 표시 순서 고정(원본) ...overrides, + data: order, }); }