Commit 41b97c3
fix: remove stackOffset="sign" to fix stacked area artifacts when chart is flipped
Zero download values (idle clients) were routed to the positive stack
group while active values went to negative, causing area jumps and
visual overlap on transitions. stackOffset="sign" was redundant since
downloads/uploads already use separate stackIds with manual negation.
Also removes useState/useEffect anti-pattern for derived chart data,
using direct variable assignment from useMemo instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 62aab99 commit 41b97c3
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
| |||
537 | 535 | | |
538 | 536 | | |
539 | 537 | | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
| 538 | + | |
| 539 | + | |
545 | 540 | | |
546 | 541 | | |
547 | 542 | | |
| |||
707 | 702 | | |
708 | 703 | | |
709 | 704 | | |
| 705 | + | |
710 | 706 | | |
711 | 707 | | |
712 | | - | |
713 | 708 | | |
714 | 709 | | |
715 | 710 | | |
| |||
0 commit comments