Commit 8faf516
fix: hide baseline snapshot from Net Worth Evolution chart
For YTD/1Y/3Y/5Y periods, getSnapshotsForPeriod includes one extra month
before the range as a baseline to enable first-month return calculations.
This baseline was visible as a spurious data point in the Evoluzione
Patrimonio AreaChart (e.g. Dec 2024 appearing in a YTD 2025 chart).
Added optional skipBaseline param to preparePerformanceChartData; caller
(getChartData in page.tsx) passes true for baseline periods. Consistent
with the existing pattern in prepareMonthlyReturnsHeatmap (i=1 loop).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent bf8ad1d commit 8faf516
File tree
5 files changed
+33
-4
lines changed- app/dashboard/performance
- lib/services
5 files changed
+33
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
| |||
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
154 | 164 | | |
155 | 165 | | |
156 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
334 | 337 | | |
335 | 338 | | |
336 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1499 | 1499 | | |
1500 | 1500 | | |
1501 | 1501 | | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1502 | 1507 | | |
1503 | 1508 | | |
1504 | 1509 | | |
1505 | | - | |
| 1510 | + | |
| 1511 | + | |
1506 | 1512 | | |
1507 | 1513 | | |
1508 | 1514 | | |
1509 | 1515 | | |
1510 | 1516 | | |
1511 | 1517 | | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
1512 | 1526 | | |
1513 | 1527 | | |
1514 | 1528 | | |
| |||
1517 | 1531 | | |
1518 | 1532 | | |
1519 | 1533 | | |
1520 | | - | |
| 1534 | + | |
1521 | 1535 | | |
1522 | 1536 | | |
1523 | 1537 | | |
| |||
0 commit comments