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

Fixing fade deselected. Possible fix of #1401 #1422

Closed
wants to merge 3 commits into from
Closed

Fixing fade deselected. Possible fix of #1401 #1422

wants to merge 3 commits into from

Conversation

kum-deepak
Copy link
Collaborator

Bit of a coincidence, figured out why bar were turning gray in 3.0 in multi focus example. It also fixes strange fading in http://localhost:8888/web/examples/filter-stacks.html.

In 2.1, fadeDeselectedArea was effecting the fade only if the chart had brush on. I have added these as explicit check now.

See, if this should be accepted as a fix.

@gordonwoodhull
Copy link
Contributor

I never saw the fading problem in filter-stacks until today! All this time I've been wondering what you were talking about.

Finally tested in Safari, and yeah, that's pretty bad. Stuff like this:
image

Inconsistent, too, sometimes it looked correct:
image

And yes, it fixes the distracting multi-focus issue as well. Thanks so much for figuring this out!

@gordonwoodhull
Copy link
Contributor

Merged for 3.0 beta 1

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented Apr 20, 2018

Rats, this broke ordinal bar selection, eg

http://127.0.0.1:8888/web/examples/ordinal-bar.html

vs

https://dc-js.github.io/dc.js/examples/ordinal-bar.html

And this test case: dc.barChart rendering with an ordinal x domain should fade deselected bars (otherwise I might not have noticed)

@kum-deepak, do you remember any other special cases having to do with isOrdinal?

Almost there! So close.......

@kum-deepak
Copy link
Collaborator Author

kum-deepak commented Apr 20, 2018 via email

@gordonwoodhull
Copy link
Contributor

Thanks @kum-deepak, I tried moving it to the non-ordinal section of barChart.fadeDeselectedArea and that fixed it. I'll push that fix to 3.0.

However, there are still infinite recursion bugs on range-series. I'll see if #1408 helps with that and file an issue.

gordonwoodhull added a commit that referenced this pull request Apr 20, 2018
where there is no concept of "no brushing"
ref #1422 #1401
@kum-deepak kum-deepak deleted the band-highlight-issue branch April 22, 2018 11:12
gordonwoodhull pushed a commit that referenced this pull request May 11, 2018
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.

None yet

2 participants