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

[#1214] Chart > legend - update 호출 이후 모든 series hiding 이 가능해지는 버그 #1214

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

baejihoon
Copy link
Collaborator

@baejihoon baejihoon commented Jun 15, 2022

이슈 내용

  • 차트 legend 클릭으로 series 를 hide 할때 최소 1개는 보여지는 것이 스펙이지만, 차트의 update 함수 호출 이후 모두 hide 가 가능해짐
  • legend

원인

  • 차트 update 가 호출된 이후에 visible counter 역할을 하는 seriesInfo.count 가 초기화 되지 않아서 updateLegend 를 호출하면 counter 가 증가하며, [실제 시리즈 갯수 x 2]개 의 count 를 갖게되어 legend 코드에서 의도한 것으로 보이는 최소 한개를 보여주는 스펙이 동작하지 않음.

처리 내용

  • resetLegend 함수에서 count 를 초기화

##########
 - 차트 update 가 호출된 이후에 visible counter 역할을 하는 seriesInfo.count 가 초기화 되지 않아서 updateLegend 를 호출하면 counter 가 증가하며, [실제 시리즈 갯수 x 2]개 의 count 를 갖게되어 legend 코드에서 의도한 것으로 보이는 최소 한개를 보여주는 스펙이 동작하지 않음.
@baejihoon baejihoon changed the title [#1214] Chart > legend - 차트 update 호출 이후 모든 series hiding 이 가능해지는 버그 [#1214] Chart > legend - update 호출 이후 모든 series hiding 이 가능해지는 버그 Jun 15, 2022
@jhee564 jhee564 merged commit d0b6cdc into 3.0 Jun 15, 2022
@baejihoon baejihoon deleted the 1214_chart_legend_count branch June 16, 2022 03:10
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

Successfully merging this pull request may close these issues.

2 participants