tasks/workstreams/graph-library/archive/add-quantitative-scale-headroom-defaults-for-standard-charts.md


type: task id: GRAPH_LIBRARY-ADD_QUANTITATIVE_SCALE_HEADROOM_DEFAULTS_FOR_STANDARD_CHARTS title: Add quantitative scale headroom defaults for standard charts description: Capture follow-on work to give standard charts a system-level headroom policy, such as 20% top headroom above the maximum plotted value, instead of relying on manual per-chart scale domains. milestone: m1-ft-analytics-analyst-pilot owner: data-viz-designer-engineer status: not_started priority: p2


Add quantitative scale headroom defaults for standard charts

Superseded (2026-03-27). This narrowly scoped follow-on was consolidated into Consolidate semantic chart defaults and rendering control-surface follow-ons so the active backlog carries one M2 umbrella task instead of many M1 leaf items. Keep the notes below as reference detail, not as a separately scheduled task.

Problem

Capture follow-on work to give standard charts a system-level headroom policy, such as 20% top headroom above the maximum plotted value, instead of relying on manual per-chart scale domains.

Context

During M1 structure-lab work, we noticed that the maximum plotted marks in standard charts often sit very close to the top of the charting surface. The current behavior appears to be driven mostly by scale-domain inference (zero, nice, authored domain) rather than by an explicit visual headroom policy.

For design purposes, we want to think about this at a systems level rather than through manual per-chart domain hacks. The current working assumption is that standard charts should leave about 20% top headroom above the maximum plotted value, unless a chart type or authored override explicitly calls for something different.

This is not naturally a query-layer concern:

Relevant files:

Note: - m1-structure-bars-lines-lab.yml was a March 26, 2026 session artifact from the parallel codex/m1-structure-lab branch. If it is not present on main when work starts, use it as historical context only and recreate the repro as needed.

Possible Solutions

Plan

  1. Trace where quantitative domains are currently inferred or passed through.
  2. Decide the precedence rules between: - authored scale/domain overrides - zero-based requirements - automatic headroom defaults
  3. Prototype a 20% top-headroom rule for the relevant standard chart types.
  4. Verify the effect across bars, lines, and comparable axes.
  5. Add regression coverage for domain expansion behavior.

Implementation Progress

Not started.

March 26, 2026 notes:

QA Exploration

N/A for now. This task has not been implemented yet.

Review Feedback

Not started.