From a09bf74326e24700d771b706662a47cc145ab4b7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 8 Mar 2019 21:41:19 +0100 Subject: fix js --- client/chart/chart.container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/chart') diff --git a/client/chart/chart.container.js b/client/chart/chart.container.js index ea86f998..eba1b529 100644 --- a/client/chart/chart.container.js +++ b/client/chart/chart.container.js @@ -165,7 +165,7 @@ class ChartContainer extends Component { let countriesByYear = Object.keys(countriesByYearLookup).map(country => [country, countriesByYearLookup[country]]).sort((a,b) => b[1] - a[1]) let topCountriesForThisYear = countriesByYear.slice(0, topCountryCount) let bottomTotal = countriesByYear.slice(topCountryCount).reduce((a,b) => (a + b[1]), 0) - console.log(topCountriesForThisYear) + // console.log(topCountriesForThisYear) topCountriesForThisYear.push([otherCountriesLabel, bottomTotal]) const tableRows = topCountriesForThisYear.filter(pair => !!pair[1]).map(([country, total]) => { let colorIndex = topCountries.indexOf(country) -- cgit v1.2.3-70-g09d2