Add client-side support for <VictoryChart> element#90253
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| } | ||
|
|
||
| function useChartDefaultTypeface() { | ||
| const regular = useTypeface(require('@assets/fonts/native/ExpensifyNeue-Regular.otf') as DataModule); |
There was a problem hiding this comment.
NAB - maybe we can use useLazyAsset for this?
|
@situchan I fixed the styles on mWeb not to overflow. The native still needs to be fixed but will handle in a follow up. Also the legend is not re-positioned correctly, also for a follow up. There are kinda 3 issues:
Would you have bandwidth to look at the first issue? |
| }, | ||
| "words": [ | ||
| "--longpress", | ||
| "ADDCOMMENT", |
There was a problem hiding this comment.
oh I didn't mean to rewrite entire word list. The sorting should be case-insensitive
There was a problem hiding this comment.
I don't think that matters
There was a problem hiding this comment.
This should have been out of scope. I was expecting only new words added in this PR sorted.
That's second issue. I think it should scale same as it does in https://virtual-cfo-charts.netlify.app/
Yeah, that's the third issue. The position is not correct, in theory to fix this I just need to multiply the x and y coordinates by the scale factors, the thing is I don't know how to get those yet, the |
|
I'm making some progress locally, probably same fix will fix all the issues. Currently I think the domain padding is not scaling properly which makes the chart get smaller fast. I don't think I will be able to fix this today, so let's merge Screen.Recording.2026-05-23.at.12.07.43.AM.mov |
roryabraham
left a comment
There was a problem hiding this comment.
Merging since the style issues will be smaller follow-up PRs, and no users should actually see this until concierge starts sending charts, which he shouldn't yet.
|
🚧 @roryabraham 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. |
luacmartins
left a comment
There was a problem hiding this comment.
Thanks for working on this! Let's compile a list of all the follow ups needed here. I'd prioritize adding polar charts and VictoryGroup first though, since those are blockers for the BE work. We can then tackle the styles next. Maybe we could get another contributor to work on the follow up style fixes.
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.3.81-0 🚀
|
|
No help site changes are required for this PR. This PR adds internal client-side rendering support for |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.81-2 🚀
|

Explanation of Change
Fixed Issues
$ #90546
PROPOSAL:
Tests
Offline tests
n/a
QA Steps
n/a
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
iOS: mWeb Safari
MacOS: Chrome / Safari