From 5284aa830c1fc7e1bcd109fb5ce1dc56255091fc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 Mar 2019 16:06:52 +0100 Subject: k --- client/chart/pie.charts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/chart') 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, -- cgit v1.2.3-70-g09d2