Skip to content

Settings › Display: now line, glucose scale and time window - #2613

Merged
ps2 merged 1 commit into
next-devfrom
feature/chart-display-options
Oct 26, 2026
Merged

ps2 merged 1 commit into
next-devfrom
feature/chart-display-options

Conversation

@ps2

@ps2 ps2 commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Adds Settings › Display with three options for the status charts. Requires LoopKit/LoopKit#667.

  • Now Line: a vertical line at the current time on each chart (the Loop and Learn now_line customization).
  • Glucose Scale: Auto (today's behavior) or Fixed 40–400 mg/dL / 2–22 mmol/L, so every glance uses the same scale.
  • Time Window:
    • Full Forecast (today's behavior): the full insulin action time ahead, and as much history as fits.
    • 3 Hours: 3 h back, 3 h ahead.
    • 6 Hours / 12 Hours: that much history plus the full forecast.

The hour options are sized for a portrait iPhone. Wider screens (landscape, iPhone Duo unfolded) keep the same zoom and fill the extra width with more history, up to 2×. X-axis labels thin out by available width, so they stay readable on long windows and stay hourly when there's room.

Changes apply to the status charts immediately, without a relaunch.

Tested in the simulator on an iPhone 17 Pro (portrait and landscape) and an iPhone Duo (folded, and unfolded in landscape), with a 12-hour scenario of meals, manual and automatic boluses and a fingerstick.

Known limit: on the fixed scale, a CGM reading above 400 mg/dL (some Libre sensors report up to 500) would draw above the top gridline.

- Now Line toggle.
- Glucose Scale: Auto (current behavior) or Fixed 40-400 mg/dL.
- Time Window: Full Forecast (current behavior), 3 Hours (3 h back,
  3 h ahead), 6 Hours or 12 Hours (that much history plus the full
  insulin action time ahead). The hour options are sized for a portrait
  iPhone; wider screens keep the same zoom and show more history, up to
  2x.
- X-axis labels thin out based on available width.

Changes apply to the status charts immediately.
@ps2

ps2 commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

Screenshots: Settings › Display; 6 Hours (now line on); 12 Hours; iPhone Duo unfolded in landscape with 6 Hours.

pr-settings

pr-6h

pr-12h

pr-duo-6h

@ps2
ps2 merged commit 8ca3f9d into next-dev Oct 26, 2026
jenneman pushed a commit to jenneman-org/LoopWorkspace that referenced this pull request Oct 26, 2026
…ime window)

- LoopKit/LoopKit#667: chart now line, fixed glucose scale and x-axis label spacing
- LoopKit/Loop#2613: Settings › Display with Now Line, Glucose Scale and Time Window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant