From 0950679874223e5ba959de3fe8e02c3e36da2f7d Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Mon, 2 Feb 2026 12:30:48 +0900 Subject: [PATCH] =?UTF-8?q?260202=5F02=5FENH:=20=EA=B5=AC=EB=A7=A4=20?= =?UTF-8?q?=EC=B1=84=EB=84=90=EC=97=90=20=EC=98=A8/=EC=98=A4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EB=84=A4=ED=8C=85=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sub-page/category-page/PurchaseChannel.tsx | 14 ++++++++++++-- src/config/sample.data.ts | 8 ++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/lge-dashboard/sub-page/category-page/PurchaseChannel.tsx b/src/components/lge-dashboard/sub-page/category-page/PurchaseChannel.tsx index 321d91a..23fe195 100644 --- a/src/components/lge-dashboard/sub-page/category-page/PurchaseChannel.tsx +++ b/src/components/lge-dashboard/sub-page/category-page/PurchaseChannel.tsx @@ -1,7 +1,12 @@ 'use client' import {useLayoutFilter} from "@/components/layout/LayoutFilterContext"; -import {apiOwnershipPathByYear, apiOwnershipTriggerByYear, apiPurchaseChannelByYear} from "@/config/sample.data"; +import { + apiOwnershipPathByYear, + apiOwnershipTriggerByYear, + apiPurchaseChannelByYear, + apiPurchaseChannelSummaryByYear +} from "@/config/sample.data"; import {useMemo} from "react"; import {PageData, ServerBannerRow} from "@/types/lg"; import {CategoryByData} from "@/components/lge-dashboard"; @@ -12,7 +17,12 @@ const PurchaseChannel = () => { const tableDataArray = useMemo[]>(() => [ { - title: "구매 채널", + title: "구매 채널(온/오프라인)", + chartMode: "reverseStack", + data: apiPurchaseChannelSummaryByYear.filter(r => !(r.year === 26 && r.rowLabel === "gap")), + }, + { + title: "구매 채널(상세)", chartMode: "horizontal", data: apiPurchaseChannelByYear.filter(r => !(r.year === 26 && r.rowLabel === "gap")), chartHeight: 550, diff --git a/src/config/sample.data.ts b/src/config/sample.data.ts index 77cf207..3c84e5e 100644 --- a/src/config/sample.data.ts +++ b/src/config/sample.data.ts @@ -424,6 +424,14 @@ export const apiPurchaseRateKpis: ServerBannerRow[] = [ bannerRow(26, "gap", 2), // 26-25 ]; +export const apiPurchaseChannelSummaryByYear: ServerBannerRow[] = [ + bannerRow(25, "오프라인", 60), + bannerRow(25, "온라인/홈쇼핑", 40), + + bannerRow(26, "오프라인", 59), + bannerRow(26, "온라인/홈쇼핑", 41), +] + /** --------------------------- * API #13 * year rowLabel total banner