Replies: 1 comment
-
|
I like the analysis and suggestion for histogram. For the y-axis, I think having a y-axis (or labels) indicate the amount of time or the distance can be helpful. It was initially confusing to me looking at the percentages. But then I thought it made more sense to say, oh I drove 50 miles at 90 km/hr, 15 miles at 40 km/hr, so the majority of my driving was at 90 km/hr. I'm not sure which is better to make the data more understandable, though. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I'm writing this feature proposal for two improvements of the "speed histogram" panel in the "drive" dashboard.
Arbitrary time range:
Currently, the histogram always groups the data for the entire drive, ignoring the selected time range in Grafana.
This prevents users from zooming in on specific segments of a trip.
(Other panels already allows this, notably the map + temperature + elevation)
Switch from time-weighted to distance weighted:
The current histogram groups speed by duration (time spent) instead of distance.
This often misrepresents the nature of a trip.
It makes sense from a "driver comfort" perspective, but it misrepresents the distance driven, and more importantly it doesn't match the reality of the consumed energy.
(because consumed energy depends on the total driven distance)
We drove a total of 100km, with 90km on the highway.
Hence the speed histogram shows a split of 10%/90% because 90% of the trip (90km) was driven at 90km/h.
Also distance-weighted "explains" the efficiency and energy consumed better.
I made two separate SQL requests that fixes each of those points.
As you can see below, the new speed histogram (by distance) feels more natural and fits the map better.
In this first example, the time-based histogram says I drove 33% at "high speed" ( over 70km/h ) while it was actually 68% of the driven distance.
In this second example, the time-based histogram says I spent 15% at 10 km/h and only drove 51% at high speed while it was actually 82% of the driven distance.
It keeps the existing time-weight logic but adds support for the grafana time picker.
This one fixies the second point I made above, which produces a more natural speed histogram that fits the trip better.
Note: in this one, I renamed the distance columns back into "elapsed" and "time" so that the query can be dropped in the existing panel without changing the panel configuration.
Beta Was this translation helpful? Give feedback.
All reactions