From 9962699e387133a6e33df851ed1f288275ab91ec Mon Sep 17 00:00:00 2001 From: totorototo Date: Tue, 22 May 2018 21:48:21 +0200 Subject: [PATCH] cleanup --- .../specific/elevationProfile/ElevationProfile.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/components/specific/elevationProfile/ElevationProfile.js b/app/components/specific/elevationProfile/ElevationProfile.js index 4130f03e..043da5a3 100644 --- a/app/components/specific/elevationProfile/ElevationProfile.js +++ b/app/components/specific/elevationProfile/ElevationProfile.js @@ -89,13 +89,7 @@ export default class ElevationProfile extends Component { return d3.scale .scaleThreshold() .domain([1, 2, 3, 4]) - .range([ - ELEVATION_COLORS.SMALL, - ELEVATION_COLORS.EASY, - ELEVATION_COLORS.MEDIUM, - ELEVATION_COLORS.DIFFICULT, - ELEVATION_COLORS.HARD - ]); + .range(Object.values(ELEVATION_COLORS)); } static createAxis(edges, graphWidth, graphHeight) {