Skip to content
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

Time Series Legend default sort order #689

Closed
korinekgergely opened this issue Apr 11, 2024 · 1 comment
Closed

Time Series Legend default sort order #689

korinekgergely opened this issue Apr 11, 2024 · 1 comment

Comments

@korinekgergely
Copy link

In grafana scenes, is it possible to predefine the order of Legends in the Time Series panel (table view)? Similarly, as in the case of the Tooltip, the 'Values sort order'?
I want the same effect as if I had clicked on the 'name' field.

Monosnap Edit panel - Template Dashboard !!!! DO NOT DELETE !!!! - Dashboards - Grafana 2024-04-11 15-19-29
Monosnap Edit panel - Template Dashboard !!!! DO NOT DELETE !!!! - Dashboards - Grafana 2024-04-11 15-09-26
Thank you.

@korinekgergely
Copy link
Author

Found a solution:
.setOption('legend', { calcs: ['min','max'], displayMode: LegendDisplayMode.Table, placement: 'bottom', sortBy: 'Name', sortDesc: false, })

@dprokop dprokop closed this as completed Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants