Open d123456temp opened 8 months ago
@d123456temp I came across it too - I agree it's not ideal. If not default, it would be good if the group by had an option to align to some period that relates to the group duration.
As a temporary solution, if you set a start or end time, that 'pins' the grouping to that period.
Example:
span:
end: hour
+1
It's hard to imagine a use-case in which this is the desired behavior for grouping (align the buckets to the current time, rather than a static value that would be stable over time).
group_by.duration
(if the series is grouped). E.g. if the duration is 1m
and the current time is 10:21:48, align the end of the last bucket to 10:22:00span
option so that if you provide a start
or end
value that is less than the graph_span
, you would get this behavior of snapping the start/end of the graph to the nearest multiple of the provided span value. This is actually what I thought span
was for until I read it more carefully. E.g. if you provide a span.end
value of 1m
and it is less than the graph_span
value of 30m
, then the whole graph would just line up to the nearest minute.~Update: I had tried the span.start
and it did not produce a desired result, but hadn't tried span.end
. I Agree with @edwardhorsford that somewhat counterintuitively, this does do what I want. I still think maybe the default bucket alignment for grouped series should be updated.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
Commenting to keep alive.
There's no default alignment with bucketing, that's what end and start are made for.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.
It feels counterintuitive and not ideal that in effect over time graphs using this will fluctuate as the bucket moves. I wonder if this default is worth changing or adding guidance for?
Checklist
Describe the bug Depending on the time (during the day) when I run/display the chart card, the historical chart entries are different. See the attached screenshot of the same bar chart top left of the screenshot - every time the values shown are different. What I noticed is that the popup shows date and time and the time part equals to the time of the rendering. Yes, I'm sure the data are not altered, the only thing that fluctuate is the rendered bar chart.
See chart definition below.
Version of the card Version: latest release
To Reproduce This is the configuration I used:
Screenshots If applicable, add screenshots to help explain your problem.
Expected behavior Historical data presentation should be stable and exactly the same no matter when chart is rendered.
Desktop (please complete the following information):