-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Custom Reports: Enable Show Labels #2124
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
Removed
Bigger No assets were 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
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
Good call, changed them in all graphs to reflect currency formats.
Thanks! |
These should both be fixed. Have a look and let me know. Cheers! |
That's as intended so that labels don't spill into adjacent bars. Labels with more digits are adjusted smaller so they fit better. |
Ahh that makes sense, only way around that would be to use suffixes(K, m). |
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.
Amazing addition to the UI! Just couple of small notes from me.
packages/desktop-client/src/components/reports/reports/CustomReport.jsx
Outdated
Show resolved
Hide resolved
packages/desktop-client/src/components/reports/graphs/adjustTextSize.ts
Outdated
Show resolved
Hide resolved
let source; | ||
switch (type) { | ||
case 'variable': | ||
const findArray = variableLookup.find(({ value }) => width < value).arr; |
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.
I feel like there's a better way to do this. My brain just can't come up with anything better right now. Thoughts?
default: | ||
source = defaultLookup; | ||
} | ||
const lookup = source.find(({ size }) => sized <= size); |
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.
Same thing here.
* work * updates * merge fixes * syntax fix * Add Label element * updates * notes * normalize customLabel * fix * range adjustments * margin update * merge fixes * review Updates * labelFix * Fix adjustTextSize
Enabling and formatting "viewLabels" button.
A quick note: I fully understand that labels aren't going to work very well for everything (eg. something like Payees in a bar graph). The field can be shown for when it's useful and hidden for when it's not.