Skip to content
Permalink
Browse files
color for before/after redistricting
  • Loading branch information
couchand committed Oct 13, 2013
1 parent c02e9fc commit e586a87
Showing 1 changed file with 3 additions and 1 deletion.
@@ -54,9 +54,11 @@
offset = 2,
scaleCount = Math.max(3, Math.min(9, colorCount+offset));

var colors = [colorbrewer["PuBuGn"][scaleCount][offset], colorbrewer["YlOrRd"][scaleCount][offset], colorbrewer["PuBuGn"][scaleCount][offset+2], colorbrewer["YlOrRd"][scaleCount][offset+2]];

var color = d3.scale.ordinal()
.domain(yearsToShow)
.range(colorbrewer["PuBuGn"][""+scaleCount].slice(offset));
.range(colors);

var percentile = d3.scale.quantile()
.range(d3.range(0,100));

0 comments on commit e586a87

Please sign in to comment.