Carbohydrates graph in portrait mode doesn't show correct negative units
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:
- Have negative absorptions in carbs (don't ask me how...).
- Go to the bottom of the main screen.
- Click on "Active carbohydrates".
- 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:
Small graph, incorrect scale:
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
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.