라인바 차트 좌측 여백 및 라벨 좌측으로 좀 더 이동

This commit is contained in:
2025-09-05 14:21:39 +09:00
parent b47c0dff2b
commit ffa1781005
@@ -170,7 +170,7 @@ export default function LineBarchart({
return (
<text
x={x - padding} // 맨 좌측 바깥
y={y + height / 2 - 8} // 수직 중앙
y={y + height / 2 - 12} // 수직 중앙
textAnchor="middle"
transform={`rotate(-90, ${x - padding}, ${y + height / 2})`}
className="text-[12px] font-bold"
@@ -201,7 +201,7 @@ export default function LineBarchart({
</div>
) : null}
<div className="h-[calc(100%-42px)] w-[calc(100%-40px)] ">
<ChartContainer config={chartConfig ?? {}} className="h-full w-[100%] ml-8">
<ChartContainer config={chartConfig ?? {}} className="h-full w-[100%] ml-5">
<ComposedChart
data={chartData}
height={graphSize * 7.5}