Skip to content

Commit

Permalink
implements new color bucket legend
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Mar 20, 2019
1 parent c81071a commit fc80725
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
11 changes: 11 additions & 0 deletions app/d3plus.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ export default {
}
},
color: colors.colorScaleGood,
legendConfig: {
shapeConfig: {
labelConfig: {
fontFamily: () => "Source Sans Pro",
fontSize: () => 12
},
height: () => 15,
stroke: "transparent",
width: () => 15
}
},
scale: "jenks"
},
confidenceConfig: {
Expand Down
13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions static/data/colors.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@
"colorLeast": "#58879A",
"colorMost": "#1A3E61",
"colorScaleGood": [
"#cfdfeb",
"#b0cde1",
"#90bad8",
"#6ea7d2",
"#4c96cb",
"#3182bd",
"#004374"
],
"colorScaleBad": [
"#edd1d1",
"#e4b4b4",
"#dc9595",
"#d57676",
"#cf5555",
"#CA3434",
"#7b0000"
Expand Down

0 comments on commit fc80725

Please sign in to comment.