260311_01_ENH: Console.log clear 및 구매율 투입변수 수정

This commit is contained in:
2026-03-11 17:14:50 +09:00
parent 1159993c62
commit eee25ea68f
6 changed files with 7 additions and 11 deletions

View File

@@ -27,8 +27,6 @@ const PenetrationChange = ({
}));
});
console.log(tempProfileData)
return tempProfileData;
}, [dataMap]);

View File

@@ -36,7 +36,7 @@ const LGPurchasePage = () => {
const req = useMemo<StatisticsRequest>(() => {
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);

View File

@@ -31,7 +31,7 @@ const PurchasePage = () => {
const req = useMemo<StatisticsRequest>(() => {
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,

View File

@@ -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) => {

View File

@@ -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)),

View File

@@ -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;