From f694910785cfa65168d2f153079fef52eabb5ced Mon Sep 17 00:00:00 2001 From: Marty Bostick Date: Wed, 29 Jul 2026 22:32:35 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20profit=20timeline=20chart=20bars=20showin?= =?UTF-8?q?g=20zero=20=E2=80=94=20remove=20numPeople=20multiplier=20on=20b?= =?UTF-8?q?ar=20datasets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 249255f..98f4962 100644 --- a/index.html +++ b/index.html @@ -1822,10 +1822,10 @@ ${numPeople > 0 ? ` }); const monthly = buildMonthlyTimeline(phases, commPct); + const actualPeople = Math.max(numPeople, 1); let tRows = ''; let runningCum = 0; for (const m of monthly) { - const actualPeople = Math.max(numPeople, 1); runningCum += m.comm * actualPeople; tRows += ` Month ${m.m} @@ -1845,7 +1845,7 @@ ${numPeople > 0 ? ` datasets: [ { label: 'Their Profit', - data: monthly.map(m => m.prof * numPeople), + data: monthly.map(m => m.prof), backgroundColor: 'rgba(0,214,143,0.4)', borderColor: '#00d68f', borderWidth: 1, @@ -1853,7 +1853,7 @@ ${numPeople > 0 ? ` }, { label: 'Your Commission', - data: monthly.map(m => m.comm * numPeople), + data: monthly.map(m => m.comm * actualPeople), backgroundColor: 'rgba(108,92,231,0.5)', borderColor: '#6c5ce7', borderWidth: 1,