Repository navigation
Closed
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionDailyKSv2KSv2ImprovementItem broken or needs improvement.Item broken or needs improvement.InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staff
Description
Background
The Insights widget on Home shows one graph at a time: Spend over time, Top spenders, Top merchants, or Top categories. #102814 moved each item's name out of the chart and into the list beneath it on the Insights page. The Home widget doesn't show that list, so its bar charts have no labels and its donut has no legend. People have to hover each bar or slice to find out what it is.
This issue adds labels back to the Home widget's charts: x-axis labels on every bar and line chart, and a legend beside or below the donut.
Change summary
- Apply the
Spend over timex-axis label rules from # to the Home widget. - Label each bar on
Top spendersandTop merchantswith the item's name, horizontally, wrapping to two lines and truncating after that. - Add a legend to the
Top categoriesdonut, to the right of the donut where there's room and below it where there isn't. - No change to the
Insightspage, which keeps its list beneath each graph, or to the Home widget's tooltips, switcher, or⋮menu.
Product and design details
Top merchants bars with two-line labels
Top categories donut with the legend on the right
Top categories donut with the legend below
Spend over time
- The x-axis follows [Due for payment 2026-10-23] [Insights polish] [R1] Show fewer, horizontal x-axis labels on
Spend over time#103536 exactly: horizontal labels, only as many as fit on the step list, shortened label text, and only the first and last point labeled on mobile.
Bar labels
This applies to Top spenders and Top merchants, and to Top categories whenever it draws as bars.
- Each bar gets its item's name beneath it, centered under the bar, in the same style as the axis labels.
- Labels are always horizontal and never rotated.
- A label can use the full width of its bar's column. It wraps at word breaks onto a second line if needed, and anything past two lines is cut off with an ellipsis, e.g.
IT Software/Licenses and Su…. - The tooltip still shows the full name, so nothing is lost to truncation.
Top spenderslabels use the spender's display name.
Donut legend
- The
Top categoriesdonut gets a legend: one row per slice, with the slice's color dot and the category name, in the same order as the slices (largest first). The total stays in the center of the donut. - The legend shows names only. Amounts stay in the tooltip.
- Side by side when the card is wide enough: the donut on the left and the legend on the right, vertically centered against the donut. Legend names wrap onto as many lines as they need.
- Stacked when it isn't, which is mostly narrow phone screens: the donut centered at the top, and the legend beneath it, left-aligned. Each name usually fits on one line here, and wraps if it doesn't.
- @dannymcclain can confirm the exact card width where the layout switches from side by side to stacked. The legend should never be narrower than the longest common category name on two lines.
- The layout updates when the card's width changes, e.g. when the window is resized.
Issue Owner
Current Issue Owner: @truph01Reacted by Danny McClain
Metadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionDailyKSv2KSv2ImprovementItem broken or needs improvement.Item broken or needs improvement.InternalRequires API changes or must be handled by Expensify staffRequires API changes or must be handled by Expensify staff
Type
Projects
- StatusShow more project fieldsDone
Activity
truph01 commentedon Oct 19, 2026
@dannymcclain Could you assign me since I worked on the previous issue #102863
JmillsExpensify commentedon Oct 19, 2026
Done
adamgrzybowski commentedon Oct 19, 2026
I will be working on this one
JmillsExpensify commentedon Oct 19, 2026
Assigned you
43 remaining items
JmillsExpensify commentedon Nov 10, 2026
Looks like this is ready for payment?
JmillsExpensify commentedon Nov 10, 2026
Or wait, maybe we can close. I'll let someone else clarify.
truph01 commentedon Nov 11, 2026
Following the payment summary in #104266 (comment), we have one more PR, Update pie chart labels styling and total value formatting, to address the remaining feedback in #104266 (comment).
@JmillsExpensify Could you please create a payment issue to cover the work on #105747?
Thanks!
JmillsExpensify commentedon Nov 11, 2026
Can you provide the regression test for that PR here? I'll get the payment issue created.
JmillsExpensify commentedon Nov 11, 2026
If you request via Expensify, then you can link this internal issue: https://github.com/Expensify/Expensify/issues/703019.
truph01 commentedon Nov 11, 2026
Contributor+ Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: N/A. It is an improvement
Link to the comment on the Issue:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
truph01 commentedon Nov 12, 2026
@JmillsExpensify Could you create a payment issue for it?
JmillsExpensify commentedon Nov 12, 2026
@mallenexpensify Can you help out? Not sure why you didn't get assigned. (I'll also reach out to him 1:1).
mallenexpensify commentedon Nov 12, 2026
@truph01 I bumped the payment summary above to $500 since you haven't requested payment yet. Tag me and reopen here if that doesn't work for ya. Created another test case too.