From f09d14ba159b777ba14cd0330da40e80b9785f61 Mon Sep 17 00:00:00 2001 From: yoonho Date: Thu, 11 Sep 2025 16:56:48 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EA=B0=95=EC=82=AC=20=EB=8C=80?= =?UTF-8?q?=EC=8B=9C=EB=B3=B4=EB=93=9C=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EC=B0=A8=ED=8A=B8=20=EB=94=94=EC=9E=90=EC=9D=B8=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LecturerPage/LecturerDashboardPage.tsx | 41 +++---------------- 1 file changed, 6 insertions(+), 35 deletions(-) diff --git a/src/pages/LecturerPage/LecturerDashboardPage.tsx b/src/pages/LecturerPage/LecturerDashboardPage.tsx index 87c1646..7709553 100644 --- a/src/pages/LecturerPage/LecturerDashboardPage.tsx +++ b/src/pages/LecturerPage/LecturerDashboardPage.tsx @@ -318,7 +318,7 @@ const LecturerDashboardPage = () => { ) : ( { tickPadding: 5, tickRotation: -45, tickValues: 10, + format: (value) => { + return value.replace(/^(\d{2})(\d{2})-/, "$2-"); + }, }} axisLeft={{ tickSize: 5, @@ -384,7 +387,7 @@ const LecturerDashboardPage = () => { keys={completeProgressData.keyList} indexBy={completeProgressData.index} enableLabel={false} - margin={{ top: 50, right: 130, bottom: 50, left: 60 }} + margin={{ top: 50, right: 50, bottom: 50, left: 100 }} padding={0.3} valueScale={{ type: "linear" }} indexScale={{ type: "band", round: true }} @@ -412,22 +415,6 @@ const LecturerDashboardPage = () => { modifiers: [["darker", 1.6]], }} layout="horizontal" - legends={[ - { - dataFrom: "keys", - anchor: "bottom-right", - direction: "column", - justify: false, - translateX: 120, - translateY: 0, - itemsSpacing: 2, - itemWidth: 100, - itemHeight: 20, - itemDirection: "left-to-right", - itemOpacity: 0.85, - symbolSize: 20, - }, - ]} /> )} @@ -496,7 +483,7 @@ const LecturerDashboardPage = () => { keys={progressGroupData.keyList} indexBy={progressGroupData.index} enableLabel={false} - margin={{ top: 50, right: 130, bottom: 50, left: 60 }} + margin={{ top: 50, right: 50, bottom: 50, left: 60 }} padding={0.3} valueScale={{ type: "linear" }} indexScale={{ type: "band", round: true }} @@ -523,22 +510,6 @@ const LecturerDashboardPage = () => { from: "color", modifiers: [["darker", 1.6]], }} - legends={[ - { - dataFrom: "keys", - anchor: "bottom-right", - direction: "column", - justify: false, - translateX: 120, - translateY: 0, - itemsSpacing: 2, - itemWidth: 100, - itemHeight: 20, - itemDirection: "left-to-right", - itemOpacity: 0.85, - symbolSize: 20, - }, - ]} /> )}