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
Expanded lay rate chart leaves the left 40% of the plot empty #1161
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.
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.
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:
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).
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.
Activity
mforce commentedon Oct 10, 2026
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:
days × 22pxis 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, notscrollWidth(web: expand the Lay rate chart into a centred overview + scrollable daily view for ranges beyond 14 days #941 rule 3).MAX_EXPANDED_RANGE_DAYS = 90(web/src/lib/layRateRange.ts:33). The small card keeps its 14-day limit.Both go in one PR.