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

Color Transition (Chrome Version 41.0.2272.101 (64-bit)) Issue #2359

Closed
dsiah opened this issue Mar 26, 2015 · 2 comments
Closed

Color Transition (Chrome Version 41.0.2272.101 (64-bit)) Issue #2359

dsiah opened this issue Mar 26, 2015 · 2 comments
Labels
bug Something isn’t working
Milestone

Comments

@dsiah
Copy link

dsiah commented Mar 26, 2015

I noticed that transition for a background-color attribute does not work with some colors.

d3.select('svg')
    .transition()
    .duration(5000)
    .style('background-color', 'SteelBlue');

The color appears but does not transition
If you replace the color string to say yellow it does work as expected.

Kinda silly but still wanted to know if there was a reason this (bug) is occurring.
Has anyone ever seen this?

@mbostock
Copy link
Member

The starting value of the transition wasn’t explicitly specified, so D3 is using the computed value, as described in the Working with Transitions tutorial. If that’s not what you want, you should specify a starting value explicitly (as described in the previous link). Please use Stack Overflow if you seek further assistance.

@jasondavies
Copy link
Contributor

Actually, I think there is a bug: detecting colour names should be case insensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Development

No branches or pull requests

3 participants