Skip to content

Commit

Permalink
Merge pull request #151 from tgve/feature/unify-colours
Browse files Browse the repository at this point in the history
Feature/unify colours
  • Loading branch information
layik committed Mar 31, 2022
2 parents ae1b83f + 9b49f5b commit 38c17d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/home/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ const generateLayer = (values = {}, props, state, renderTooltip) => {
}
}
}

if (layerName === 'arc') {
options.getSourceColor = colorScale(getMin(domain), domain, 180, cn || state.colorName);
options.getTargetColor = colorScale(getMax(domain), domain, 180, cn || state.colorName);
}

let newLegend = state.legend;

const getValue = (d) => {
Expand Down

0 comments on commit 38c17d5

Please sign in to comment.