obfuscurity / judy

Bespoke service for reviewing CFP submissions
http://obfuscurity.github.io/judy
Other
25 stars 6 forks source link

Score distribution chart color range #8

Closed obfuscurity closed 10 years ago

obfuscurity commented 10 years ago

Instead of category20c it would be nice to use a stepped gradient to represent the distribution so it's obvious we're looking at increasing values. This might not be the best way to visualize a distribution of scores, but I'd like to try it.

John Schulz pointed out that d3 supports this natively:

var scale = d3.scale.linear().range(["white", "red"])
d3.range(0, 1.1, .1).map(scale)
obfuscurity commented 10 years ago

Also, John has https://github.com/jfsiii/chromath/ which is useful for calculating color values in js.

whilp commented 10 years ago

linear ranges on things like colors in d3 blew my mind.

obfuscurity commented 10 years ago

Tried this but I don't like it. I'll probably destroy the score distribution chart, at least in its current donut form. Perhaps a more traditional histogram.

      colors: d3.range(0, 1.1, .1).map(d3.scale.linear().range(["white", "red"]))

screen shot 2014-02-10 at 2 41 00 pm