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

correct initial visibility of hidden bars #2702

Merged
merged 1 commit into from
Sep 23, 2019

Conversation

panthony
Copy link
Contributor

When using 'data_hide' option, the bars are not taken into account when
computing offsets and so on but they still have 'opacity:1'.

There is another issue that I have no time to really dig into is that the order of targets (given to the legend) may changes when you toggle back the initially hidden series, visible with the c3 chart interaction bar chart tooltip_grouped=true expands all bars of currently hovered category test.

Closes #2685

When using 'data_hide' option, the bars are not taken into account when
computing offsets and so on but they still have 'opacity:1'.
@codecov-io
Copy link

codecov-io commented Sep 17, 2019

Codecov Report

Merging #2702 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2702      +/-   ##
==========================================
- Coverage   82.68%   82.66%   -0.02%     
==========================================
  Files          59       59              
  Lines        4718     4720       +2     
==========================================
+ Hits         3901     3902       +1     
- Misses        817      818       +1
Impacted Files Coverage Δ
src/shape.bar.js 100% <100%> (ø) ⬆️
src/core.js 90.74% <0%> (-0.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93dcd65...f615ea3. Read the comment docs.

@panthony panthony requested a review from kt3k September 23, 2019 11:50
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM - thanks!

@kt3k kt3k merged commit 391897d into c3js:master Sep 23, 2019
beninsocrata pushed a commit to socrata/c3 that referenced this pull request Oct 31, 2019
When using 'data_hide' option, the bars are not taken into account when
computing offsets and so on but they still have 'opacity:1'.
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.

Option data_hide does not always work
3 participants