Skip to content

Expanded lay rate chart leaves the left 40% of the plot empty #1161

Closed

Description

@mforce

What happens

On the Dashboard, Lay rate → Expand opens the full chart for Last 30 days. The 30 bars fill only the right ~60% of the plot; the left ~40%, from the y-axis to the first bar, is empty. The x-axis labels start under the first bar, not at the axis.

The overview strip above the chart spans the full width for the same 30 days, so the data is complete; only the main plot leaves the space unused.

Expanded lay rate chart, bars right-aligned

Reproduce

Demo farm (readme-farm) at e4ec5347, 1280×800 viewport: Dashboard → Lay rate → Expand. The inline 14-day chart on the dashboard itself fills its width correctly.

Activity

  1. added
    bugSomething isn't working
    severity:p4Defect: tooling, CI noise or test gap; no user impact
    on Oct 10, 2026
  2. mforce commented on Oct 10, 2026

    @mforce
    OwnerAuthor

    Maintainer decision (2026-10-10). This is the designed behaviour from #941 (PR #958): bars are always 22px, the newest day is at the right edge, and spare space goes on the left. The maintainer chose to change that rule, and to widen the range:

    1. Stretch to fill when the whole range fits. When days × 22px is at most the window width, widen the bars so the range fills the plot from the y-axis to the right edge, with x-axis labels following. When it does not fit, keep today's 22px bars, horizontal scroll and the overview map. "Fits" is decided from layout, not scrollWidth (web: expand the Lay rate chart into a centred overview + scrollable daily view for ranges beyond 14 days #941 rule 3).
    2. Allow custom ranges up to 1 year (365 days) in the expanded chart. Today MAX_EXPANDED_RANGE_DAYS = 90 (web/src/lib/layRateRange.ts:33). The small card keeps its 14-day limit.

    Both go in one PR.

  3. added this to the SPA revamp milestone on Oct 10, 2026
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

    area:frontendReact/Vite web clientbugSomething isn't workingseverity:p4Defect: tooling, CI noise or test gap; no user impact

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions