-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Render gridlines opacity values keeping changing #1500
Comments
Hi @louMoxy, thanks for the report! This is a weird one all right. It looks like the attribute is overridden by the CSS (attributes < CSS < styles) so we don't see the animations at all. This code is wrong in a few ways:
Looks like these lines were added in 7c9346a, which animated the axes. Even back then there was a transition on all the grid lines right after, so I guess we have never seen these lines fade in! If you want to see the fade, you'll have to
I'd be happy to take a PR on this! |
* Remove opacity from gridlines css (this was overriding the opacity animation on render) * Update grid-chart-spec to test that the opacity value after render is 0.5 * Update gridMixin to display the gridlines with opacity 0.5 and remove overriding transition Fixes: dc-js#1500
* Remove opacity from gridlines css (this was overriding the opacity animation on render) * Update grid-chart-spec to test that the opacity value after render is 0.5 * Update gridMixin to display the gridlines with opacity 0.5 and remove overriding transition Fixes: dc-js#1500
* Remove opacity from gridlines css (this was overriding the opacity animation on render) * Update grid-chart-spec to test that the opacity value after render is 0.5 * Update gridMixin to display the gridlines with opacity 0.5 and remove overriding transition Fixes: dc-js#1500
* Remove opacity from gridlines css (this was overriding the opacity animation on render) * Update grid-chart-spec to test that the opacity value after render is 0.5 * Update gridMixin to display the gridlines with opacity 0.5 and remove overriding transition Fixes: dc-js#1500
Thanks @gordonwoodhull for the detailed response, I have opened a PR following your instructions. |
Hi guys, 👋
Bit of an odd issue, the opacity value of the grid lines (horizontal or vertical) appear to be random every time. Here is a fiddle of the issue:
https://jsfiddle.net/vpk5cu9n/
Having a little dig through the code, I am assuming its because it hasn't finished its the transtion on enter, although I can't see an obvious issue with the code: https://dc-js.github.io/dc.js/docs/html/coordinate-grid-mixin.js.html#sunlight-1-line-723
The text was updated successfully, but these errors were encountered: