Improve chart label alignment and spacing#88718
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
It's on my list, reviewing it ASAP. Thank you. |
trjExpensify
left a comment
There was a problem hiding this comment.
Insights project label fixes. 👍
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@mhawryluk, the bars and lines look good to me, however I noticed an inconsistency in the table tab on small screen, on large verything looks consistent: 88718_bug.on.web.movThe |
I merged main and now it looks like it does on staging. there are no changes to the table view in this PR |
|
Great, thank you. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-04-29.at.12.31.47.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #88586 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 @mollfpr has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mollfpr in version: 9.3.66-0 🚀
|
|
No help site changes are required for this PR. The changes are purely visual/rendering improvements to chart label alignment and spacing (removing The relevant help site article ( |
Explanation of Change
In bar chart diagonal labels were previously centered on their tick mark instead of right-aligned (text ending at tick), and vertical ones were centered to the longest one. Removed the centerRotatedLabels prop to use the line chart behavior for both of the chart types. Labels are now passed through StringUtils.normalize to collapse multiple whitespace characters into one. finalMaxWidth is now also computed after the skip interval is resolved, so the chart height is based only on labels that are actually rendered. The gap between the chart and the x axis labels should now be reduced and constant.
Fixed Issues
$ #88586
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-04-27.at.13.04.02.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Nagranie.z.ekranu.2026-04-27.o.13.00.52.mov