diff --git a/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx b/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx index 5dce4fd..6657bf7 100644 --- a/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx +++ b/src/app/(pages)/(main)/category/sub-page/category-page/PenetrationChange.tsx @@ -27,8 +27,6 @@ const PenetrationChange = ({ })); }); - console.log(tempProfileData) - return tempProfileData; }, [dataMap]); diff --git a/src/app/(pages)/(main)/total/lg-purchase/page.tsx b/src/app/(pages)/(main)/total/lg-purchase/page.tsx index 2d45f3f..8b01693 100644 --- a/src/app/(pages)/(main)/total/lg-purchase/page.tsx +++ b/src/app/(pages)/(main)/total/lg-purchase/page.tsx @@ -36,7 +36,7 @@ const LGPurchasePage = () => { const req = useMemo(() => { return { - variableIdMap: {purchase: "KQA3_2", purchase_lg: "KQX3_3_LG"}, + variableIdMap: {purchase: "KQB0", purchase_lg: "KQX3_3_LG"}, bannerIdList: ["product"], filterCondition: normalizeFilterCondition(debouncedFilterValue), option: {useCache: true, lastYear: false, decimalPoint: 0}, @@ -51,7 +51,7 @@ const LGPurchasePage = () => { const purchaseRows = data?.statisticsDataMap?.purchase - .filter((r) => r.rowLabel == `해당년도`) + .filter((r) => r.rowLabel == `구매`) .map((row) => { return { ...row, @@ -110,8 +110,8 @@ const LGPurchasePage = () => { for (let ci = 0; ci < includeProductKeys.length; ci++) { const k = includeProductKeys[ci]; - const t = (purchaseRows[ri] as any)[k]; - const v = (r as any)[k]; + const t = (purchaseRows[ri] as any)[k] ?? ""; + const v = (r as any)[k] ?? ""; total[yi][ci] = Number(t); focus[yi][ci] = Number(v); diff --git a/src/app/(pages)/(main)/total/purchase/page.tsx b/src/app/(pages)/(main)/total/purchase/page.tsx index 0c54d2c..a63140e 100644 --- a/src/app/(pages)/(main)/total/purchase/page.tsx +++ b/src/app/(pages)/(main)/total/purchase/page.tsx @@ -31,7 +31,7 @@ const PurchasePage = () => { const req = useMemo(() => { return { - variableIdMap: { purchase: "KQA3_2"}, + variableIdMap: { purchase: "KQB0"}, bannerIdList: ["product"], filterCondition: normalizeFilterCondition(debouncedFilterValue), option: { useCache: true, lastYear: false, decimalPoint: 0 }, @@ -46,7 +46,7 @@ const PurchasePage = () => { const purchaseRows = data?.statisticsDataMap?.purchase - .filter((r) => r.rowLabel == `해당년도`) + .filter((r) => r.rowLabel == `구매`) .map((row) => { return { ...row, diff --git a/src/components/lge-dashboard/chart/GroupedStackBar.tsx b/src/components/lge-dashboard/chart/GroupedStackBar.tsx index 55ab1fe..779386f 100644 --- a/src/components/lge-dashboard/chart/GroupedStackBar.tsx +++ b/src/components/lge-dashboard/chart/GroupedStackBar.tsx @@ -61,7 +61,6 @@ const GroupedStackBar = ({ const defaultYAxis: EChartsOption["yAxis"] = { type: "value", ...AXIS_HIDE_STYLE }; const latestYear = years.at(-1); - console.log(yearBrandPalette, String(latestYear), yearBrandPalette?.[String(latestYear)]) const latestPalette = buildLgPalette(yearBrandPalette?.[String(latestYear)]); const yearLegendTokens = years.map((y) => { diff --git a/src/components/lge-dashboard/chart/StackBar.tsx b/src/components/lge-dashboard/chart/StackBar.tsx index a2b35db..f138058 100644 --- a/src/components/lge-dashboard/chart/StackBar.tsx +++ b/src/components/lge-dashboard/chart/StackBar.tsx @@ -65,7 +65,7 @@ const StackBar = ({ const option: EChartsOption = useMemo(() => { const fmt = valueFormatter ?? ((v: number) => String(v)); const isV = orientation === "vertical"; -console.log(grid) + return { color: palette, tooltip: tooltip ?? (isReverse ? createReverseTooltip(data, fmt) : createDefaultTooltip(fmt)), diff --git a/src/lib/lg-dashboard.ts b/src/lib/lg-dashboard.ts index cb9b3ab..46e596a 100644 --- a/src/lib/lg-dashboard.ts +++ b/src/lib/lg-dashboard.ts @@ -446,7 +446,6 @@ export const calcCagrRow = (after: ProductRow, before: ProductRow): ProductRow = for (const k of PRODUCT_KEYS) { const vBefore = before? before[k] ?? "0" : "0"; const vAfter = after? after[k] ?? "0" : "0"; - console.log(k, vBefore, vAfter); out[k] = Number(vBefore) > 0 ? calcCagr(Number(vAfter), Number(vBefore), years) : "0"; } return out;