Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] 차트 레이아웃 시도 (svg, canvas) #12

Merged
merged 4 commits into from
May 27, 2022

Conversation

kimyouknow
Copy link
Owner

About

svg와 cavnas로 꺾은선 차트를 그리는 레이아웃을 시도했습니다.

Description

  • svg chart component 생성
  • canvas chart component 생성 (미완)

추가사항

canvas관련해서 추가적인 학습이 필요합니다.

Result

스크린샷 2022-05-27 오전 11 16 10

Ref

#10

@kimyouknow kimyouknow added feat 기능 추가 FE 프론트 labels May 27, 2022
@kimyouknow kimyouknow added this to the airbnb-step2 milestone May 27, 2022
@kimyouknow kimyouknow added this to To do in 프론트 via automation May 27, 2022
@kimyouknow kimyouknow self-assigned this May 27, 2022
프론트 automation moved this from To do to In progress May 27, 2022
Copy link
Collaborator

@HongJungKim-dev HongJungKim-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아직 svg, canvas에 대한 학습이 덜 되어있어서 추후 더 살펴보겠습니다!
제출을 위하여 일단 approve합니다~

FE/src/App.tsx Outdated
@@ -7,6 +9,8 @@ function App() {
<div>
<button onClick={handleOpenModal}>로그인 모달</button>
<LoginModal isModalOpen={isModalOpen} handleOpenModal={handleOpenModal} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분은 지워주셔도 될것 같습니다!

return (
<div style={container}>
<svg viewBox={`0 0 100 100`} style={{ border: '3px solid #ccc' }}>
<polyline fill="none" stroke="tomato" strokeWidth={1} points={points} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strokeWidth는 단위를 안써도 될까요?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분은 저도 이해가 부족한 것 같아서 추가적으로 학습해보겠습니다!

@kimyouknow kimyouknow merged commit 4ce74f5 into develop-FE May 27, 2022
프론트 automation moved this from In progress to Done May 27, 2022
@HongJungKim-dev HongJungKim-dev changed the title [feat] 차트 레이아웃 시도 (svg, canvas) [Feat] 차트 레이아웃 시도 (svg, canvas) May 27, 2022
HongJungKim-dev added a commit that referenced this pull request May 30, 2022
* [Feat] 모달 구현 (#8)

* docs: 템플릿 수정(리뷰반영)

* refactor: config폴더내의 파일을 루트로 이동(리뷰반영)

* build: react-refresh 추가

* feat: 모달 구현

* refactor: config폴더내의 파일을 루트로 이동(리뷰반영)

* build: react-refresh 추가

* build: 빌드 수정

* build: webpack styled options 수정

* [feat] 캘린더 한 달 뷰 (#11)

* feat: 현재 달의 calendar를 모달에 출력

* fix: calendar날짜가 마지막 일까지 출력되도록 수정

* refactor: 캘린더 뷰에 사용하는 상수를 파일로 분리

* [feat] 차트 레이아웃 시도 (svg, canvas) (#12)

* Feat: svg 그래프

* Feat: canvas 레이아웃

- 선 그리는 로직 미완

* Chore: svgChart에서 plots 좌표값 관련 주석 작성

Co-authored-by: HongJungKim(이든) <58525009+HongJungKim-dev@users.noreply.github.com>
Co-authored-by: khj <hongjung.kim.dev@gmail.com>
kimyouknow added a commit that referenced this pull request Jun 1, 2022
* [Feat] 모달 구현 (#8)

* docs: 템플릿 수정(리뷰반영)

* refactor: config폴더내의 파일을 루트로 이동(리뷰반영)

* build: react-refresh 추가

* feat: 모달 구현

* refactor: config폴더내의 파일을 루트로 이동(리뷰반영)

* build: react-refresh 추가

* build: 빌드 수정

* build: webpack styled options 수정

* [feat] 캘린더 한 달 뷰 (#11)

* feat: 현재 달의 calendar를 모달에 출력

* fix: calendar날짜가 마지막 일까지 출력되도록 수정

* refactor: 캘린더 뷰에 사용하는 상수를 파일로 분리

* [feat] 차트 레이아웃 시도 (svg, canvas) (#12)

* Feat: svg 그래프

* Feat: canvas 레이아웃

- 선 그리는 로직 미완

* Chore: svgChart에서 plots 좌표값 관련 주석 작성

* build: react-refresh 추가

* [PR] 1주차 두번째 PR 리뷰 반영 (#14)

* refactor: 관심사 분리를 고려하여 모달 리팩토링

응집성을 위하여 html에서 모달 태그 삭제, Portal 컴포넌트에서 해당
element 생성

* refactor: interface 네이밍 수정

컴포넌트 이름 + Props (ex.ComponentProps)

* build: liveReload 기능 false처리

* [Feat] 캘린더 렌더링 로직 구현 (#17)

* Feat: 캘린더 렌더링

* Chore: 캘린더 관련 주석 작성

* [Feat] 차트 그래프 기본 구현 (#18)

* feat: 가격 범위 차트 그래프 렌더링

* refactor: 중복 스타일 mixin으로 분리

중복된 캔버스 컨테이너 스타일 분리

Co-authored-by: HongJungKim(이든) <58525009+HongJungKim-dev@users.noreply.github.com>
Co-authored-by: khj <hongjung.kim.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE 프론트 feat 기능 추가
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants