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

시계열 Chart hover된 시간에 대한 indicator 동기화 기능 추가 #1744

Closed
jiwlee523 opened this issue Aug 13, 2024 · 0 comments
Closed
Assignees

Comments

@jiwlee523
Copy link
Collaborator

jiwlee523 commented Aug 13, 2024

image 시계열 차트 hover event 발생했을때 , hover event 발생한 시간에 대해 다른 차트에도 indicator 표시를 할 수 있는 기능 추가
@jiwlee523 jiwlee523 self-assigned this Aug 13, 2024
jhee564 pushed a commit that referenced this issue Aug 16, 2024
* feat: ChartGroup에서 groupHoveredLabel provide

- hover 위치, 방향 데이터

* feat: getTimeLabel 함수 구현

offset 위치와 차트의 방향에 따라 indicator가 위치하는 time label값 구하는 함수

* feat: drawSyncedIndicator 함수 구현

차트의 방향에 따라 전달받은 time label에 indicator 표시를 그리는 함수

* feat: groupHoveredLabel 연동하여 indicator 표시

- mouse-enter event 발생시 groupHoveredLabel값 업데이트
- groupHoveredLabel업데이트되면 indicator 그리기

* docs: Line, Bar chart HoverWithGroup 예시 추가

* docs: BarChart HoverWithGroup 차트별 호버 동기화 옵션 추가

* fix: lint error 수정

* docs: syncHover option에 대한 설명 추가

* refactor: 빠른 return적용

* fix: lint error 수정

* fix: 현재 hover중인 차트의 경우 syncedIndicator 그려지지 않도록 수정

* fix: mousePosition가 없는 경우 처리
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant