Live data from Hacker News

Legends in D3

d3-legend.susielu.com

21–22 of 22 posts

Re: Legends in D3

#21
post #18

I can't be the only one who thought this article would be about people who will be known throughout history for their amazing work in D3- champions, heroes, front-end developers!

No, but those comfused would be people who haven't worked with plotting and charts and so don't know what "legend" means in this context.

Re: Legends in D3

#22
post #2

Very nice! I was tired of making my own legends for each single things. And this one looks really nice and easy. Though, one of my pet peeves: people, please don't use discrete color scales for continuous parameters. It distorts presentation for no good reason. For example two countries are colored the same way even though they are on the opposing edges of a bin (so the difference is being masked), or two countries a…

NOOOOOOOOOOOOooooooooo....... ;)

This is the exact wrong way round. Continuous colour scales are hugely problematic because of the fact that our colour perception is closely linked to context.

the classic illustration: http://blog.asmartbear.com/wp-content/uploads/Grey_square_op...

If precise comparisons are required you're better off not using colour at all. Colour e.g. in choropleth maps, is good for showing broad spatial trends or highlighting particular areas for selection. A bar chart is better for precise comparisons because we're much better at comparing lengths than colours.

Post reply on HN