@@ -123,38 +123,27 @@ const CustomTooltip = ({ active, payload, data, chartTotal, isCurrentPeriod }: C
123123 const isDecrease = parseFloat ( changeRate ) < 0
124124
125125 return (
126- < div className = "bg-white border border-gray-300 rounded-lg shadow-xl px-4 py-3 min-w-[180px] max-w-[250px] relative z-[10000]" style = { { pointerEvents : 'auto ' } } >
126+ < div className = "bg-white border border-gray-300 rounded-lg shadow-xl px-4 py-3 min-w-[180px] max-w-[250px] relative z-[10000]" style = { { pointerEvents : 'none ' } } >
127127 < div className = "space-y-1.5" >
128128 < div className = "text-sm font-semibold text-gray-900 leading-tight break-words" >
129129 { name }
130130 </ div >
131131 { isCurrentPeriod ? (
132- // 현재 기간 차트: 현재 기간과 이전 기간 비교 정보 표시
133- < div className = "flex items-center justify-between gap-3 pt-1 border-t border-gray-200" >
132+ // 현재 기간 차트: 현재 기간 정보만 표시
133+ < div className = "pt-1 border-t border-gray-200" >
134134 < div className = "flex flex-col" >
135135 < span className = "text-xs text-gray-500" > 현재 기간</ span >
136- < span className = "text-base font-bold text-gray-900" > { currentValue . toLocaleString ( ) } 건 </ span >
137- < span className = "text-xs text-gray-600 mt-0.5" > { percentage } % </ span >
136+ < span className = "text-xl font-bold text-gray-900" > { percentage } % </ span >
137+ < span className = "text-xs text-gray-600 mt-0.5" > { currentValue . toLocaleString ( ) } 건 </ span >
138138 </ div >
139- { previousValue > 0 && (
140- < div className = "flex flex-col items-end" >
141- < span className = "text-xs text-gray-500" > 이전 기간</ span >
142- < span className = "text-sm font-medium text-gray-700" > { previousValue . toLocaleString ( ) } 건</ span >
143- < span className = { `text-xs font-medium mt-0.5 ${
144- isIncrease ? 'text-green-600' : isDecrease ? 'text-red-600' : 'text-gray-600'
145- } `} >
146- { isIncrease ? '↑' : isDecrease ? '↓' : '' } { Math . abs ( parseFloat ( changeRate ) ) } %
147- </ span >
148- </ div >
149- ) }
150139 </ div >
151140 ) : (
152141 // 이전 기간 차트: 이전 기간 정보만 표시
153142 < div className = "pt-1 border-t border-gray-200" >
154143 < div className = "flex flex-col" >
155144 < span className = "text-xs text-gray-500" > 이전 기간</ span >
156- < span className = "text-base font-bold text-gray-900" > { value . toLocaleString ( ) } 건 </ span >
157- < span className = "text-xs text-gray-600 mt-0.5" > { percentage } % </ span >
145+ < span className = "text-xl font-bold text-gray-900" > { percentage } % </ span >
146+ < span className = "text-xs text-gray-600 mt-0.5" > { value . toLocaleString ( ) } 건 </ span >
158147 </ div >
159148 </ div >
160149 ) }
0 commit comments