Skip to content

Fix account breakdown percentage calculation in net totals mode#10

Closed
MatissJanis wants to merge 2 commits intomainfrom
matiss/fix
Closed

Fix account breakdown percentage calculation in net totals mode#10
MatissJanis wants to merge 2 commits intomainfrom
matiss/fix

Conversation

@MatissJanis
Copy link
Member

No description provided.

…nhance unit tests

- Corrected the denominator used for account breakdown percentages in net totals mode to reflect the sum of absolute values of net spending, ensuring accurate percentage calculations.
- Added unit tests for account breakdown percentage calculations in both net totals and absolute modes, including scenarios with negative net spending and edge cases.
@netlify
Copy link

netlify bot commented Jan 9, 2026

Deploy Preview for actual-wrapped ready!

Name Link
🔨 Latest commit 6bfbc65
🔍 Latest deploy log https://app.netlify.com/projects/actual-wrapped/deploys/69617df7b003000008355161
😎 Deploy Preview https://deploy-preview-10--actual-wrapped.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@MatissJanis MatissJanis added the AI generated PR generated by AI agent label Jan 9, 2026
- Updated the account breakdown pie chart to use absolute values for rendering, ensuring compatibility with Recharts, which does not handle negative values well.
- Preserved original net spending values for display in tooltips and statistics, enhancing the clarity of financial data representation.
- Filtered out accounts with zero net spending from the chart to improve visual accuracy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI generated PR generated by AI agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant