라인바 차트 좌측 여백 및 라벨 좌측으로 좀 더 이동
This commit is contained in:
@@ -170,7 +170,7 @@ export default function LineBarchart({
|
|||||||
return (
|
return (
|
||||||
<text
|
<text
|
||||||
x={x - padding} // 맨 좌측 바깥
|
x={x - padding} // 맨 좌측 바깥
|
||||||
y={y + height / 2 - 8} // 수직 중앙
|
y={y + height / 2 - 12} // 수직 중앙
|
||||||
textAnchor="middle"
|
textAnchor="middle"
|
||||||
transform={`rotate(-90, ${x - padding}, ${y + height / 2})`}
|
transform={`rotate(-90, ${x - padding}, ${y + height / 2})`}
|
||||||
className="text-[12px] font-bold"
|
className="text-[12px] font-bold"
|
||||||
@@ -201,7 +201,7 @@ export default function LineBarchart({
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="h-[calc(100%-42px)] w-[calc(100%-40px)] ">
|
<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
|
<ComposedChart
|
||||||
data={chartData}
|
data={chartData}
|
||||||
height={graphSize * 7.5}
|
height={graphSize * 7.5}
|
||||||
|
|||||||
Reference in New Issue
Block a user