Skip to content

feat: support different tick label overflow - #835

Merged
hcopp merged 8 commits into
masterfrom
hunter/axis-tick-label-overflow
Aug 11, 2026
Merged

hcopp merged 8 commits into
masterfrom
hunter/axis-tick-label-overflow

Conversation

@hcopp

@hcopp hcopp commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

What changed? Why?

This PR adds tickLabelOverflow to axes so that we can achieve styles near to other charting solutions we have seen. Before we only would allow or block repositioning to fit labels within the chart, now we also allow fading of axis labels

UI changes

See the bottom left of the chart. This now enables labels to be evenly spaced

Before After

Mobile

These graphs test all three potential paths, I believe visual regression testing is important on these charts since there is no easy way to test this functionality via unit tests.

In the first two screenshots you will see three paths for rendering the axis now

  1. Reposition - this was what we did before and is good when you want users to see all labels
  2. Fade - this is nice for a faster moving chart imo, and we have seen it in a few cases like crypto binaries
  3. Do nothing - this is another nice solution for faster moving charts, we have seen this with candlestick chart in base app

Before, someone would have needed to create a custom TickLabelComponent to accomplish this. The one downside with this solution was that there wasn't even a way to enable repositioning per axis. Now it only requires a simple prop, tickLabelOverflow.

Web

Docs

Docs.mov

Testing

How has it been tested?

  • Visual regression tests
  • Manual - Web
  • Manual - Android (Emulator / Device)
  • Manual - iOS (Emulator / Device)

Testing instructions

Illustrations/Icons Checklist

Required if this PR changes files under packages/illustrations/** or packages/icons/**

  • verified visreg changes with Terran (include link to visreg run/approval)
  • all illustration/icons names have been reviewed by Dom and/or Terran

Change management

type=routine
risk=low
impact=sev5

automerge=false

@hcopp hcopp self-assigned this Aug 8, 2026
@cb-heimdall

cb-heimdall commented Aug 8, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Heimdall Review Status

Requirement Status More Info
Reviews ✅ 1/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 1
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1
CODEOWNERS ✅ See below

✅ CODEOWNERS

Code Owner Status Calculation
ui-systems-eng-team ✅ 1/1
Denominator calculation
Additional CODEOWNERS Requirement
Show calculation
Sum 0
0
From CODEOWNERS 1
Sum 1

import { Line } from '../../line/Line';
import { Scrubber } from '../../scrubber/Scrubber';
import { XAxis, YAxis } from '..';
import { type AxisTickLabelOverflow, XAxis, YAxis } from '..';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to refactor this one to have buttons to go between examples since there were so many now

@github-actions

github-actions Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

cb-ekuersch
cb-ekuersch previously approved these changes Aug 11, 2026
@hcopp
hcopp merged commit 7f1303d into master Aug 11, 2026
32 of 34 checks passed
@hcopp
hcopp deleted the hunter/axis-tick-label-overflow branch August 11, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants