diff --git a/packages/common/business_components/src/ui/chart/BarChart.tsx b/packages/common/business_components/src/ui/chart/BarChart.tsx index 5d4f902e8..1b75beb8b 100644 --- a/packages/common/business_components/src/ui/chart/BarChart.tsx +++ b/packages/common/business_components/src/ui/chart/BarChart.tsx @@ -3,13 +3,11 @@ import { Bar, BarChart, CartesianGrid, Legend, XAxis, YAxis } from "recharts"; import { ChartContainer, ChartTooltip, - ChartTooltipContent, type ChartConfig } from "./lib/chart"; -import { styles } from "@common/assets"; import type { CSSProperties } from "react"; -const styles = { +const customStyles = { legendContainer: { display: "flex", justifyContent: "center", @@ -20,8 +18,6 @@ const styles = { } as CSSProperties, }; -const tooltipClass = "!p-4 text-[12px] w-[9vw] h-[5vw]"; - type BarChartProps = { chartConfig: ChartConfig | undefined; chartData: any[] | undefined; @@ -46,7 +42,7 @@ const CustomTooltip = ({ }>; label?: string; }) => { - if (active && payload && payload.length) { + if (active && payload && payload.length) {ㅇ return (
{label}
@@ -67,7 +63,7 @@ const CustomTooltip = ({ const CustomLegend = (props: any) => { const { payload } = props; return ( -{label}
+{label}
{payload.map((item, index) => (