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

Line Chart > Select Label 차트 툴팁에서 날짜 확인 후 클릭해도 간헐적으로 다른 날짜가 선택 됨. #1329

Closed
Mun94 opened this issue Dec 14, 2022 · 0 comments

Comments

@Mun94
Copy link
Collaborator

Mun94 commented Dec 14, 2022

image

Mun94 added a commit that referenced this issue Dec 14, 2022
…날짜가 선택 됨.

################################
[원인]
 - 클릭한 데이터의 xp 좌표를 가지고 findGraphData 함수를 이용하여 (xp 간격과 각각 데이터의 x 좌표을 이용해서 이진 탐색 함) 전체 데이터에서 좌표에 맞는 데이터의 인덱스를 구하고 해당 값에 seletedLabel이 생성되는데 데이터가 너무 많을 경우 날짜는 다르지만 각각 데이터의 x 좌표가 같게 되고 이진 탐색시 간헐적으로 클릭한 날짜에 정확하게 selectedLabel이 생성되지 않음.

[수정 내용]
 - selectedLabel의 v-model 값으로 보내지는 dataIndex를 이용하여 findGraphData를 하고 tooltip과 같이 클릭 없이 마우스 위치의 값을 보여줘야 하는 경우 기존 xp 좌표를 이용하여findGraphData를 하도록 수정.
 - pointSize를 추가하여 차트의 끝 부분을 클릭 시 정확하게 0번째 와 마지막 날짜가 선택되도록 수정

[확인 경로]
 - Line Chart > SelectedLabel
@Mun94 Mun94 closed this as completed Feb 7, 2023
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