diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 16:06:52 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 16:06:52 +0100 |
| commit | 5284aa830c1fc7e1bcd109fb5ce1dc56255091fc (patch) | |
| tree | e2f77ce4808dfd3454230f1961a7591c68a359b0 /client/chart/pie.charts.js | |
| parent | 1c99addd8ce31d57654202478d5b77aa3724967a (diff) | |
k
Diffstat (limited to 'client/chart/pie.charts.js')
| -rw-r--r-- | client/chart/pie.charts.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/chart/pie.charts.js b/client/chart/pie.charts.js index af790be7..6e579537 100644 --- a/client/chart/pie.charts.js +++ b/client/chart/pie.charts.js @@ -47,9 +47,9 @@ class PieCharts extends Component { }) const countryTuples = toTuples(countries).sort((a,b) => b[1] - a[1]) - let countryRows = countryTuples.slice(0, 9) + let countryRows = countryTuples.slice(0, 10) - const otherCountryCount = countryTuples.slice(9).reduce((a,b) => (a + b[1]), 0) + const otherCountryCount = countryTuples.slice(10).reduce((a,b) => (a + b[1]), 0) if (otherCountryCount > 0) { countryRows.push([ otherCountriesLabel, |
