-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Feature/sankey chart #4156
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
b5e167c
to
fceb57d
Compare
fceb57d
to
8b6d305
Compare
8b6d305
to
2c834e6
Compare
thanks for your feedback, @youngcw. Would you be able to provide a sample budget for the issues you found? |
Looks like we're working towards the same goal: #4142 one thing people were split between is whether to add this under widget types for custom report or a separate standalone report like net worth. What's your thought? |
Im struggling to recreate the issues. Those screenshots came from a demo file. Im able to consistently get that second line crossing issue with my personal budget, but im not able to get that first one again. |
I don't have a preference, however I would like to drive this to completion with the minimum requirements and then iterate over to add more features |
👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me for an initial version
}: SankeyNodeProps) { | ||
const privacyMode = usePrivacyMode(); | ||
const isOut = x + width + 6 > containerWidth; | ||
let payloadValue = Math.round(payload.value / 1000).toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a bit opinionated and assumes groups will ladder up to at least this amount. Was this done to address a spacing issue?
/> | ||
<text | ||
textAnchor={isOut ? 'end' : 'start'} | ||
x={isOut ? x - 6 : x + width + 6} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6
is a magic number here that needs to match with line 36 and below. Perhaps just create a constant so it is clear for future maintenance
@@ -0,0 +1,202 @@ | |||
// @ts-strict-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious what this is actually ignoring
Attempt to revive the Sankey Chart (#1919), removed due to it being abandoned.
Enhancements over the previous implementation: