diff options
Diffstat (limited to 'client/chart')
| -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, |
