-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epic: [Deprecation] Graph old -> Time series / histogram / bar chart panel features parity and improvements #49670
Comments
better rendering parity for constantY: #51401 |
One thing coming up for Time Series is ordering of rendering in chart vs legend/tooltip. Issue for that is at #36882 |
People following this issue on the forums: Y-axis zero align are being pointed here, but I don't see an issue in this epic for aligning the zeroes on Time Series panels with two or more Y-axes. In my use case here: |
i'm struggling to reproduce this function in the old panel to see how it worked before, but i think the easiest way to get align-0 working is to introduce an option for forcing axes/scales to be symmetric (there have been requests for this feature as well [1]), effectively making 0 always centered vertically on any axis where it is enabled. for example if raw data range is this: fieldA min/max (left y axis): 3,9 setting both fields to have symmetric y axes (vertically-centered 0) would result in ranges of e.g.: left axis: -10,10 so in this case you would lose some visual resolution in the negative part of fieldB, with 85% of the displayed negative range being empty space, but this will have to be the trade-off. [1] https://community.grafana.com/t/symmetrical-y-axis/10562 |
Hey team The old Graph panel has a "Right Y" axis configurable. See screenshot: We use this in the Billing/Usage dashboard on Grafana cloud, and while it is missing we can't do a straightforward migration to the new TimeSeries panel. We'd have to redesign the dashboard to move all these "Right Y" queries out from this panel to a new panel, which itself would make the data harder to read in some cases. The Right Y is useful as it allows users to see how costs correlate with usage. And we'd love to migrate to the new panel, partly because this issue is stopping users from being able to use the following workflow:
Can you let me know if you think this feature gap is likely to be closed, or is considered out-of-scope for the new TimeSeries panel? Thanks! |
Hello, See also: https://community.grafana.com/t/sorting-of-stacked-series-in-time-series-panel/69577 |
@samjewell the TimeSeries panel supports unlimited y axes. you just have to use a field override to set
this was removed deliberately because it had many problems. see #54142. |
Ah nice, thanks @leeoniya, that's great to know. I think the automatic migration tool just discards the second Y-Axis when it migrates. Could it be extended to preserve this maybe, do you think? |
Darn... I have several panels showing usage/utilization data, and the stacks should be sorted from biggest consumer to smallest instead of alphabetically. We achieved this via sorting by avg in the legend. Is there any way to influence the stacking order in the Time series panel at all? |
if i recall correctly, we already automatically create additional right Y axes for fields that have a different unit (try it out with a fresh panel and two different-unit fields), so i'm not sure there is anything that needs to be migrated. maybe open a new issue with more specific details about the types of old configs that arent working as you expect? |
not dynamically based on the data. you can use an Organize fields transform to put them into a predefined order, or modify your sql select query to do the same. |
My datasource is prometheus, and PromQL has SORT() and SORT_DESC(), but neither function seems to have any effect on the stacking order |
hmm, it looks like you're right, i think those functions only work for instant queries and not range queries. https://stackoverflow.com/questions/64395442/how-can-i-sort-the-legend-by-series-name-in-prometheus-grafana/65353296 grafana/packages/grafana-ui/src/components/uPlot/PlotLegend.tsx Lines 60 to 116 in 6c990b4
if we were to bring back reordering fields by "legend" calculations in the viz, we would need to pull these calcs above the vis+legend components, so that the viz can be reconfigured from them; you can't wag a dog by its tail, so they say. |
@leeoniya you are right about this. In some circumstances (when no min/max std options are provided) the calcs will be present in the field's state prior visualization - because auto min/max triggers stats calculation: But we cannot assume calcs are there when the stacking is processed, hence we would have to calculate those when the panel is prepared (maybe in |
|
Ref #49031
This issue summarizes features that were available in old Graph panel and are missing in the Time series panel. It should bring more clarity on when and if we as Grafana are going to implement those for the new panel.
Migration work:
Missing features:
Features that need improvements:
viz
still displays its axis when Scale is Linear #46290 (Fix: Time series panel: Hide axis when series is hidden from the visualization #51432)percentunit
somehow makes y axis to multiply by 100 #46271Things to double check
The text was updated successfully, but these errors were encountered: