DataUSA / datausa-site

The most comprehensive visualization of U.S. public data —
www.datausa.io
GNU Affero General Public License v3.0
97 stars 28 forks source link

change geo map color gradient #180

Closed danielbyler closed 8 years ago

danielbyler commented 8 years ago

Can we make it so that high income is blue, not red? It's just not intuitive.

http://beta.datausa.io/profile/geo/16000US5462140/

image

davelandry commented 8 years ago

In most cases that I've seen, red usually implies the greater value in heat maps. We were originally inspired by the heat maps commonly produced by MatLab: https://www.google.com/search?q=matlab+heatmap&safe=off&client=safari&rls=en&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiEseiOsbbKAhWJdz4KHQOGCjYQ_AUIBygB&biw=1280&bih=1356#imgrc=_

It may be that the intermediate colors are confusing, what if we were to go from blue to grey to red? Also want to bring @melteng in on this conversation.

melteng commented 8 years ago

Yep, I agree with @danielbyler - for this viz, I'd imagine red to signify lower wages. I'm looking into the color schemes for all the profile visualizations to make them more intuitive individually and consistent collectively. To remove the good v. bad connotations involving color, I'll likely make the geomap color scale a light > dark gradient.

alexandersimoes commented 8 years ago

I dislike the idea of using a monochrome color scale for the purpose of heatmaps since it hinders legibility IMHO. Thinking of the above map it would be hard to differentiate say light blue from a shade slightly lighter or darker for very small areas whereas I can see quite distinctly the diff between green and yellow even tho they are adjacent to each other on the value scale.

TroyBishop commented 8 years ago

Agree with Dan. The color coding on the map is not intuitive; red = danger, stop, warning, negative. Consider limited hues (e.g. grays and blues) and tints of those hues; lighter tints = less concentration, darker tints = higher concentrations. Also, you will get more aesthetic harmony with more tints of fewer hues.

zwhitman commented 8 years ago

Also want to point out that the map color scale is not good for colorblind folks.

Normal: image

Colorblind: image

davelandry commented 8 years ago

@melteng and myself have spent the last few days trying out a range of different color scales. We tried both monochromatic and dichromatic color scales, but found that given the white from the "no-data" sections, we were limited in the range of values we could articulate with these color scales. After all of our tests, we found that a scale with multiple colors -- specifically from a dark blue to yellow to red -- is the best scale to express both broad range of values and the nuances between close values.

We recognize that people will associate certain colors with certain meanings, but given that we're using the same scale for dozens of different topics, it becomes very difficult to find a universal solution void of meaning.

To take into account accessibility for red/green color blind, we removed green (thanks @zwhitman). We also increased the general opacity and decreased stroke opacity to improve overall legibility. With all of these tweaks, we feel that the maps are now much more legible. Here are some before and afters of our new proposal:

screen shot 2016-03-10 at 11 25 07 am screen shot 2016-03-10 at 11 25 21 am screen shot 2016-03-10 at 11 25 30 am screen shot 2016-03-10 at 11 25 40 am
davelandry commented 8 years ago

with the addition of color breaks (#190) we're working on a new monochromatic color scale. here's a work in progress preview:

data usa - map of median age by county

zwhitman commented 8 years ago

awesome