-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
114 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import React from 'react'; | ||
import { | ||
Radar, | ||
RadarChart, | ||
PolarGrid, | ||
PolarAngleAxis, | ||
ResponsiveContainer, | ||
} from 'recharts'; | ||
import refresh from '../../images/refresh.png'; | ||
|
||
const data = [ | ||
{ | ||
subject: '커뮤니케이션', | ||
A: 330, | ||
fullMark: 700, | ||
}, | ||
{ | ||
subject: '위기 대처', | ||
A: 30, | ||
fullMark: 700, | ||
}, | ||
{ | ||
subject: '개발', | ||
A: 630, | ||
fullMark: 700, | ||
}, | ||
{ | ||
subject: '리팩터링', | ||
A: 240, | ||
fullMark: 700, | ||
}, | ||
{ | ||
subject: '기획', | ||
A: 300, | ||
fullMark: 700, | ||
}, | ||
]; | ||
|
||
function AnaylsisContribute() { | ||
return ( | ||
<div className='flex flex-col bg-white w-[1000px] h-[400px] border'> | ||
<div className='flex justify-between items-center p-5 h-[50px] bg-[#6A6A6A]'> | ||
<p className='text-white text-md font-bold'>프로젝트 기여도</p> | ||
<img | ||
className='w-[24px] h-[24px] bg-[#EAEAEA] rounded-[5px]' | ||
alt='refresh' | ||
src={refresh} | ||
/> | ||
</div> | ||
<div className='flex m-auto w-[1000px] h-[500px]'> | ||
{' '} | ||
{/* 부모 요소의 크기 조정 */} | ||
<div className='m-auto w-[500px] h-[300px]'> | ||
{' '} | ||
{/* RadarChart 영역 */} | ||
<ResponsiveContainer width='100%' height='100%'> | ||
<RadarChart cx='50%' cy='50%' outerRadius='80%' data={data}> | ||
<PolarGrid /> | ||
<PolarAngleAxis dataKey='subject' /> | ||
<Radar | ||
name='Mike' | ||
dataKey='A' | ||
stroke='#8884d8' | ||
fill='#8884d8' | ||
fillOpacity={0.6} | ||
/> | ||
</RadarChart> | ||
</ResponsiveContainer> | ||
</div> | ||
<div className='flex flex-col justify-center items-start space-y-2 w-[400px] p-2 m-auto'> | ||
<p>개발 : 630P</p> | ||
<p>기획 : 300P</p> | ||
<p>위기 대처 : 30P</p> | ||
<p>커뮤니케이션 : 330P</p> | ||
<p>리팩터링 : 240P</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default AnaylsisContribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters