diff --git a/packages/common/business_components/src/ui/chart/LineBarChart.tsx b/packages/common/business_components/src/ui/chart/LineBarChart.tsx
index 35d757619..6db4c3b0a 100644
--- a/packages/common/business_components/src/ui/chart/LineBarChart.tsx
+++ b/packages/common/business_components/src/ui/chart/LineBarChart.tsx
@@ -5,6 +5,7 @@ import {
ChartContainer,
type ChartConfig
} from "./lib/chart";
+import type { ContentType } from "recharts/types/component/DefaultLegendContent";
// 툴팁 커스텀 css
/** 차트 기본 스타일 */
@@ -25,7 +26,8 @@ type LineBarChartProps = {
chartTitle: string;
chartClassName?: string;
graphSize?: number;
- yFieldText?: string;
+ yFieldText?: string | undefined;
+ yFieldText2?: string | undefined;
showLegend?: boolean;
}
@@ -83,6 +85,7 @@ export default function LineBarchart({
chartClassName = 'w-full h-full',
graphSize = 40,
yFieldText,
+ yFieldText2,
showLegend = true
}: LineBarChartProps) {
if (!chartData || chartData.length === 0) {
@@ -110,11 +113,11 @@ export default function LineBarchart({
{/* 왼쪽 Y축: lineVal */}
-
+ {yFieldText && }
{/* 오른쪽 Y축: barVal */}
-
+ {yFieldText2 && }
} />
- {showLegend &&