Y-axis scaling can lead to confusing views #2144
Replies: 10 comments 21 replies
-
This comes up a lot. I can think of setting the last 6 hours to determine the max of the vertical axis instead of the past 24 hours. Would there be an objection to such a PR? |
Beta Was this translation helpful? Give feedback.
-
Well, from the UI perspective I absolutely agree. |
Beta Was this translation helpful? Give feedback.
-
If there are items beyond the max Y scale can you pan the screen down to see them? I think that would be ideal in that situation. |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity @christian-rummey, what were your motivations for turning off that timeline preview across the bottom? That's usually the first place my eyes go when I'm trying to get my bearings regarding scale. In your scenario for example, that peak up to 20mmol/l would always be visible on screen. One idea did occur to me, and I'm curious to see if it would be any good... If the goal is having a consistent/recognizable sense of slope, we can potentially scale the initial width of that sliding window when there are really high numbers compressing the Y axis. As long as you match what you do to both axes, the slopes won't flatten or stretch between sessions.
I suspect that time-consistency is probably more important than slope, but as long as the 24hr timeline is visible in both cases, I honestly don't know. Visually it'd be like zooming out Another idea is to improve the visibility of vertical cues, so it's easier to see how compressed it is at any given time. I noticed the "High Blood Sugar" line in the screenshot kind of blends into the background. 🤔 |
Beta Was this translation helpful? Give feedback.
-
In a modified version of xDrip, I have made the min and max value of the main graph Y-axis adjustable in the preferences and then let the main graph move up when the glucose goes higher than the max value (both the min and max then moves up in order to keep the Y range constant). The main graph then moves down again when the glucose goes down, keeping the glucose of the last one hour in the main graph. That way, the difference between the min and max Y axis value is always the same (except if zooming) and the impression of the glucose level slope stays the same also when the glucose is or has recently been very high. The Y axis in the preview graph at the bottom expands if having glucose higher than the max value (or lower than the min value) but not in the main graph. If not using the preview graph, I can still pan (or zoom out) to see prior values higher than the max value. I believe the main part of the changes to the code related to this is here (there is also some change related to landscape/portrait view): https://github.com/jakobheyman/xdripJH/blob/3fa86a22af791b221be4a651b96315030e0de1f9/app/src/main/java/com/eveningoutpost/dexdrip/UtilityModels/BgGraphBuilder.java#L2165-L2219 If there would be a wish for it, I could try to make a PR for something like this (although I have done no other java work than my modifications to xDrip). One would then first need to decide on issues such as:
|
Beta Was this translation helpful? Give feedback.
-
Can we try to collectively put our finger on what drives perceptions of what the "real" slope is at any given time?
Even now, when we only have control over the x-axis, we can stretch/squeeze any curve to look arbitrarily shallow or steep. If inconsistent "steepness" is what's causing confusion, Y-axis adjustments would add more of the same problem, wouldn't they? |
Beta Was this translation helpful? Give feedback.
-
Would you please open an issue, as a feature request? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi. on the left is a mix of today's and yesterday's curves, showing the ugly enormous scale on the left. Andrea |
Beta Was this translation helpful? Give feedback.
-
OK Navid, thank you.
I added this to the previous discussion just to avoid increasing the
number of threads ...
Andrea
On Mon, 06 Mar 2023 12:04:44 -0800 Navid ***@***.***> wrote:
@ANDREAPIPPI You could have opened a new thread.
Please do that if you have more questions. This thread is about how
long the modified range lasts. It's not about why the range gets
modified.
This image shows why your axis has got modified. It's because of
these readings I have circled.
![223198867-4a1179c8-a2a4-4653-bb0a-92a5bfb82218](https://user-images.githubusercontent.com/51497406/223218441-522301ce-c4a2-4cca-8d6b-afbf560412be.jpg)
Please open a new thread if you have any questions to avoid
derailing this discussion.
Thanks for your understanding and help.
--
Reply to this email directly or view it on GitHub:
#2144 (reply in thread)
You are receiving this because you were mentioned.
Message ID:
***@***.***>
Andrea Pelloni
|
Beta Was this translation helpful? Give feedback.
-
Bug: Y min graph range value is ignored Even though there are no readings ever below 3.3 in my case: |
Beta Was this translation helpful? Give feedback.
-
Hi - I just posted this in the xDrip FB group, and someone asked me to replicate it here:
The y-axis (BG value) currently is auto-scaled to the highest level within the last 24h - see an example on the screenshot (there was a 20+high the afternoon before). This makes sense during the high, and maybe few hours thereafter, for high insulin loads, or similar issues after the high.
But one day later, the curve can give confusing impressions. As we all know, the slope is actually more important than the actual value, and if the y-axis is scaled up to very high values, really steep slopes (eg, +/- 1.5 or more) apper much flatter than they are.
My suggestion is to let the y-axis scale to a normal range by default (e.g, 0-12 or so?), and only scale it up if higher values are visible on screen. Or at least let the user decide how he wants to scaling to work.
hope that makes sense?
thanks
Beta Was this translation helpful? Give feedback.
All reactions