Skip to content

[Due for payment 2026-10-01] Chart labels: rotate to 45° when they don't fit, fall back to horizontal bar chart #99939

Closed

Description

@MelvinBot

Problem

Chart labels can overflow / overlap when there are too many categories to fit side by side on the horizontal axis. The labels become cramped and unreadable.

Requested behavior

Update the chart-generation logic so that:

  1. Default: render labels horizontally (side by side) as today.
  2. If labels won't fit side by side: rotate them to a 45° angle.
  3. If they still won't fit even at 45°: switch the chart to a horizontal bar chart so the labels have room to render legibly.

Prior work

An earlier attempt was opened in #94882. That PR is stale and messy — the recommendation from its author is to start fresh rather than build on it.

Notes

This replaces an internal tracking issue so it can be worked on in the open. Reproduce with any report chart that has enough categories to crowd the x-axis.

Slack thread: https://expensify.slack.com/archives/C090P2M6DBL/p1782271596784509

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. melvin-bot commented on Sep 22, 2026

    @melvin-bot

    Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  2. amyevans commented on Sep 22, 2026

    @amyevans
    Contributor

    PR is merged

  3. melvin-bot commented on Sep 23, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  4. melvin-bot commented on Sep 23, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  5. jponikarchuk commented on Sep 23, 2026

    @jponikarchuk

    Deploy Blocker #102074 was identified to be related to the PR #101691 that attempted to fix this issue.

  6. amyevans commented on Sep 23, 2026

    @amyevans
    Contributor
  7. luacmartins commented on Sep 23, 2026

    @luacmartins
    Contributor

    @amyevans @situchan FYI we're working on very similar changes as part of the Insights project and have a PR ready to be merged #101435. I think we should avoid duplicating work as much as possible, so let's hold working on v2 until the PR I mentioned is merged.

  8. 5 remaining items

  9. changed the title [-]Chart labels: rotate to 45° when they don't fit, fall back to horizontal bar chart[/-] [+][Due for payment 2026-10-01] Chart labels: rotate to 45° when they don't fit, fall back to horizontal bar chart[/+] on Sep 24, 2026
  10. melvin-bot commented on Sep 24, 2026

    @melvin-bot

    @situchan

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.92-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-10-01. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

  11. melvin-bot commented on Sep 29, 2026

    @melvin-bot

    @situchan Eep! 4 days overdue now. Issues have feelings too...

  12. melvin-bot commented on Sep 30, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  13. melvin-bot commented on Sep 30, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  14. mallenexpensify commented on Oct 3, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @situchan due $250 via NewDot
    Contributor+: @mkhutornyi due $250 via NewDot

    So we'll pay out for this PR but we've reverted it and the Insights project will take on this improvement as a followup.

    Payment based on the above

  15. trjExpensify commented on Oct 15, 2026

    @trjExpensify
    Contributor

    approved $250 for @mkhutornyi

  16. trjExpensify commented on Nov 3, 2026

    @trjExpensify
    Contributor

    approved $250 for @situchan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions