260330_01_ENH: 26일자 수정사항 반영(라이프스테이지 중분류 제외)

This commit is contained in:
2026-03-30 13:18:08 +09:00
parent ee8bb13209
commit 7f9465e96f
19 changed files with 203 additions and 94 deletions

View File

@@ -28,6 +28,11 @@ type Props = {
yAxis?: EChartsOption["yAxis"];
barMaxWidth?: number;
showFocusLabel?:ShowLabel;
labelOptions?: {
position?: "right" | "insideRight";
color?: string;
distance?: number;
};
};
const HorizontalBar = ({
@@ -43,6 +48,7 @@ const HorizontalBar = ({
yAxis,
barMaxWidth,
showFocusLabel = "all",
labelOptions,
}: Props) => {
const palette = useMemo(() => buildLgPalette(paletteVarNames), [paletteVarNames]);
@@ -68,14 +74,16 @@ const HorizontalBar = ({
label: showLabel
? {
show: true,
position: "right",
position: labelOptions?.position ?? "right",
color: labelOptions?.color,
distance: labelOptions?.distance,
formatter: (p: any) => (p?.value ?? "") as any,
}
: undefined,
};
}),
};
}, [data, palette, valueFormatter, tooltip, legend, grid, xAxis, yAxis, barMaxWidth, showFocusLabel]);
}, [data, palette, valueFormatter, tooltip, legend, grid, xAxis, yAxis, barMaxWidth, showFocusLabel, labelOptions]);
return <BaseEChart option={option} height={height} className={className} />;
}