Skip to content

Render the approval-status chart as horizontal bars to stop label overlap - #163

Open
zuhdil wants to merge 1 commit into
mainfrom
fix-approval-status-label-overlap
Open

Render the approval-status chart as horizontal bars to stop label overlap#163
zuhdil wants to merge 1 commit into
mainfrom
fix-approval-status-label-overlap

Conversation

@zuhdil

@zuhdil zuhdil commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Problem

On the Pipeline explorer page (Approved Products > Approval status), the seven approval-status names were crammed under a narrow vertical-bar chart and overlapped each other — no amount of label wrapping fixes that little horizontal room.

Fix

Switch this chart to the existing horizontal-bar mode (layout="vertical"). The status names move onto the y-axis, one per row, where BarChart already wraps them and shows the full text on hover. Dropped the maxTickChars={999} override so the labels wrap at the default width, and swapped the two axis labels to match the rotated axes.

One file, 3 lines changed.

Note

The y-axis tick area is a hardcoded width={75} in BarChart.jsx. Long names like "Emergency Use Authorisation" wrap to two lines and should fit the 80px left margin — if any clip in review, the follow-up is a yAxisWidth prop rather than bumping the hardcoded value for every chart.

…rlap

The Approved Products chart packed seven long approval-status names
under a narrow vertical-bar chart, so the category labels collided no
amount of wrapping could fix. Switching to the existing horizontal-bar
mode (`layout="vertical"`) moves the names onto the y-axis, one per row,
where `BarChart` already wraps them and exposes the full text on hover.

The `maxTickChars={999}` override is dropped so the y-axis labels wrap at
the default width instead of forcing a single long line, and the two
axis labels are swapped to match the rotated axes.
@zuhdil
zuhdil requested review from jcbashdown and navins94 June 24, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants