diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-08 21:41:19 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-08 21:41:19 +0100 |
| commit | a09bf74326e24700d771b706662a47cc145ab4b7 (patch) | |
| tree | f0194347076b7de32641b249e66d0d2593378d1b | |
| parent | 96407e66872265f3b387f0800cee209300a227df (diff) | |
fix js
| -rw-r--r-- | client/chart/chart.container.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
