260311_01_ENH: Console.log clear 및 구매율 투입변수 수정
This commit is contained in:
@@ -27,8 +27,6 @@ const PenetrationChange = ({
|
||||
}));
|
||||
});
|
||||
|
||||
console.log(tempProfileData)
|
||||
|
||||
return tempProfileData;
|
||||
}, [dataMap]);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user