- create a new bookmark with the code above
- go to https://github.com/mbostock/d3/wiki/Ordinal-Scales#wiki-category10
- click the bookmarklet and behold the highlighted colors!
Created
December 7, 2012 07:14
-
-
Save jfeltesse/4231441 to your computer and use it in GitHub Desktop.
Bookmarklet to get a better idea of the colors provided by d3.js
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
javascript:(function() { $('font').each(function() { $(this).removeAttr('color');$(this).attr('style', 'background: ' + $(this).text() + '; color:#fff; text-shadow:0 0 2px #000; padding: .2em .5em;') }); })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment