Loop icon indicating copy to clipboard operation
Loop copied to clipboard

Carbohydrates graph in portrait mode doesn't show correct negative units

Open pbudzon opened this issue 7 months ago • 1 comments

Describe the bug The detailed carbohydrates graph (showing predicted vs observed carbs absorption) in portrait mode (small graph) is not showing negative units correctly. See screenshots - it's showing 0.08 twice on the left hand side. Switching to landscape mode shows graph correctly (-0.2 being the lowest value of shown on the scale).

Attach an Issue Report Loop Report 2025-05-21 19:37:25+02:00.md

To Reproduce Steps to reproduce the behavior:

  1. Have negative absorptions in carbs (don't ask me how...).
  2. Go to the bottom of the main screen.
  3. Click on "Active carbohydrates".
  4. See small graph showing silly units.

Expected behavior Scale on the smaller graph should show correct numbers, currently the negative value is showing the smallest positive value instead. Scales on both graphs should match.

Screenshots Big graph, correct (probably) scale: Image

Small graph, incorrect scale: Image

Phone

  • Hardware: iPhone 16 Pro
  • OS Version: iOS 18.4.1.

Loop Version

  • Version Number: 3.6.0 (57)
  • Repo: LoopKit/Loop

CGM

  • Device: Dexcom G7
  • Manager app: Dexcom App

Pump

  • Manufacturer: Omnipod
  • Model: Dash
  • Firmware version: n/a

Additional context

pbudzon avatar May 21 '25 17:05 pbudzon

Thank you for the report and opening this issue. That helps us track bugs we need to fix. As soon as I get a chance, I will confirm this.

marionbarker avatar May 28 '25 17:05 marionbarker