Last active
May 19, 2018 12:05
-
-
Save carolina-vallejo/5f457f5712e2d4d4efd2f67172f11aed to your computer and use it in GitHub Desktop.
rgb to hsl in d3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.style('fill',function(d, i){ | |
var c = d3.hsl(d3.rgb(#FF9900)); | |
c.l += ((0.7/2)*i); | |
return c + ""; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment