diff --git a/packages/common/business_components/src/ui/chart/index.tsx b/packages/common/business_components/src/ui/chart/index.tsx index 4c58549cc..898a65a79 100644 --- a/packages/common/business_components/src/ui/chart/index.tsx +++ b/packages/common/business_components/src/ui/chart/index.tsx @@ -1,8 +1,6 @@ - -import React from 'react'; + import React from 'react'; import BarChart from './BarChart'; import DoughnutChart from './DoughnutChart'; -import { type ChartConfig } from './lib/chart'; import LineChart from './LineChart'; import LineBarchart from './LineBarChart'; import DoubleBarChart from './DoubleBar'; @@ -35,6 +33,16 @@ const CHART_FORM = { * @returns */ +// 각 차트에서 사용하는 ChartConfig 타입 정의 +type ChartConfigItem = { + label: string; + fill: string; +}; + +type ChartConfig = { + [key: string]: ChartConfigItem; +}; + type MainChartProps = { chartForm: string; chartConfig: ChartConfig; @@ -74,4 +82,3 @@ function MainChart(props: MainChartProps) { export { MainChart }; // eslint-disable-next-line react-refresh/only-export-components export { CHART_FORM }; - export type { ChartConfig };