Skip to content

Commit

Permalink
fix relative legend
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Dec 18, 2024
1 parent bccacc1 commit 9af38a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void configure(Header header, Layout layout) {
viz.display.fill.dataset = "transit-trips";
viz.display.fill.join = REF_JOIN;
if (ind == Indicator.RELATIVE_DENSITY) {
viz.display.fill.setColorRamp(ColorScheme.RdBu, 12, false, "0.2, 0.25, 0.33, 0.5, 0.67, 1.5, 2.0, 3.0, 4.0, 5.0, 6.0");
viz.display.fill.setColorRamp(ColorScheme.RdBu, 12, false, "0.2, 0.25, 0.33, 0.5, 0.67, 1.5, 2.0, 3.0, 4.0, 5.0");
}
});

Expand All @@ -127,7 +127,7 @@ public void configure(Header header, Layout layout) {

if (ind == Indicator.RELATIVE_DENSITY) {
viz.display.fill.columnName = "relative_density";
viz.display.fill.setColorRamp(ColorScheme.RdBu, 12, false, "0.2, 0.25, 0.33, 0.5, 0.67, 1.5, 2.0, 3.0, 4.0, 5.0, 6.0");
viz.display.fill.setColorRamp(ColorScheme.RdBu, 12, false, "0.2, 0.25, 0.33, 0.5, 0.67, 1.5, 2.0, 3.0, 4.0, 5.0");
} else if (ind == Indicator.DENSITY) {
viz.display.fill.columnName = "density";
} else {
Expand Down

0 comments on commit 9af38a9

Please sign in to comment.