You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Usage chart and share-bar figures are hover-only for screen readers #37230
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Turn on a screen reader (NVDA on Windows).
Open Usage with some recorded usage.
Read the daily/hourly chart and the "Cost by type" / "Tokens by type" / "Cost by speed" bars in browse mode, on the Usage page and in a model's dialog (click a row in the Model breakdown).
Expected behavior
A screen reader user can get the same figures a sighted user gets from the chart and the bars: the value per provider for each day or hour, and each segment's amount and share of the total.
Actual behavior
The figures are only available on mouse hover, and what is exposed is read as glued-together text. In a model dialog NVDA reads (figures illustrative):
050M100M150M200M
Daily processed tokens by provider
OCT 17NOV 1NOV 15
Cost by type
Cost by type: Input $1.20, Cache read $8.40, Cache write $8.10, Output $5.40
Input$1.20Cache read$8.40Cache write$8.10Output$5.40
Chart (UsageProviderChart): the SVG is role="img" named only "Daily processed tokens by provider". The per-period, per-provider values exist only in the hover tooltip. The y-axis numbers and x-axis dates sit outside the SVG and are read as one run (050M100M150M200M, OCT 17NOV 1NOV 15) with no data attached.
On the Usage page with the Cost metric, the Day/Hour breakdown table has most of this, but with the Tokens metric each provider's tokens per period are only in the tooltip.
The model dialog has no table, so its whole trend is unavailable.
Share bars (UsageShareBar): each segment's share of the total is only in the hover tooltip. The amounts are read twice, once from the bar's aria-label and again from the legend, and the legend is read as one run (Input$1.20Cache read$8.40…).
Activity