diff --git a/index.html b/index.html index c2e12ae..9225393 100644 --- a/index.html +++ b/index.html @@ -1931,13 +1931,13 @@ ${numPeople > 0 ? ` const ctx3 = document.getElementById('compareChart').getContext('2d'); const compareLabels = SCENARIOS.map(s => s.label.replace('$', '').replace('(', '').replace(')', '')); - const compareData = SCENARIOS.map(s => Math.round(s.yr1 * mult * numPeople)); + const compareData = SCENARIOS.map(s => Math.round(s.yr1 * mult * actualPeople)); chart3 = new Chart(ctx3, { type: 'bar', data: { labels: compareLabels, datasets: [{ - label: `Year 1 Earnings (${numPeople} people)`, + label: `Year 1 Earnings (${actualPeople} person${actualPeople > 1 ? 's' : ''})`, data: compareData, backgroundColor: compareData.map((v, i) => { const ids = [`gift${giftLevel}`, `self${selfLevel}`];