Skip to content

Commit

Permalink
flip color palettes for color blind
Browse files Browse the repository at this point in the history
  • Loading branch information
nchuynh committed Apr 1, 2022
1 parent 4b511a2 commit c12c1f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/vis_flow4.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ class visFlow {
let vis = this;

if(selectedColorPalette){
vis.colors = ["#ed1b34", "#00aaad", "#cbdb2a", "#fcb315", "#4e88c7", "#ffde2d", "#77ced9", "#bb89ca"]
}else{
vis.colors = ["#ed1b34", "#01D9DC", "#41A23D", "#FCB315", "#0D5AAF", "#FFDE2D", "#B7E5EA", "#B379E8"]
}else{
vis.colors = ["#ed1b34", "#00aaad", "#cbdb2a", "#fcb315", "#4e88c7", "#ffde2d", "#77ced9", "#bb89ca"]
}
vis.colorAreas = d3.scaleOrdinal().domain(vis.listAreas).range(vis.colors)

Expand Down
4 changes: 2 additions & 2 deletions js/vis_flow5.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ class visFlow {
let vis = this;

if(selectedColorPalette){
vis.colors = ["#ed1b34", "#00aaad", "#cbdb2a", "#fcb315", "#4e88c7", "#ffde2d", "#77ced9", "#bb89ca"]
}else{
vis.colors = ["#ed1b34", "#01D9DC", "#41A23D", "#FCB315", "#0D5AAF", "#FFDE2D", "#B7E5EA", "#B379E8"]
}else{
vis.colors = ["#ed1b34", "#00aaad", "#cbdb2a", "#fcb315", "#4e88c7", "#ffde2d", "#77ced9", "#bb89ca"]
}
vis.colorAreas = d3.scaleOrdinal().domain(vis.listAreas).range(vis.colors)

Expand Down

0 comments on commit c12c1f0

Please sign in to comment.