Skip to content

[Bug]: Usage chart and share-bar figures are hover-only for screen readers #37230

Closed

Description

@nibarAhmed

Before submitting

  • 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

  1. Turn on a screen reader (NVDA on Windows).
  2. Open Usage with some recorded usage.
  3. 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…).

Impact

Minor bug or occasional failure

Version or commit

main @ a3708b5

Environment

Windows 11, NVDA, web client

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions