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

Tooltip sort #706

Open
korinekgergely opened this issue Apr 23, 2024 · 5 comments
Open

Tooltip sort #706

korinekgergely opened this issue Apr 23, 2024 · 5 comments

Comments

@korinekgergely
Copy link

Tooltip
Values Sort Order does not work?
I tried to set it in the dashboard editor and in code, it doesn't work.

.setOption('tooltip', {
      mode: TooltipDisplayMode.Multi,
      sort: SortOrder.Ascending,
    })

Is it a bug or do I do something wrong?
Screenshot 2024-04-23 at 15 25 58

@leeoniya
Copy link

leeoniya commented Apr 27, 2024

looks like it is working correctly in your screenshot. what are you expecting here?

@korinekgergely
Copy link
Author

Screenshot 2024-04-29 at 07 37 50
I think the Legend is the right, the Tooltip is false.

@korinekgergely
Copy link
Author

But to return to the example above, I think CRITICAL should appear before WARNING. In fact, it should be first.

@dprokop
Copy link
Member

dprokop commented Apr 29, 2024

But to return to the example above, I think CRITICAL should appear before WARNING. In fact, it should be first.

Why should that be? CRITICAL has the highest value, with ascending values sort it's placed correctly.

@korinekgergely
Copy link
Author

I see. What confused me is that the legend sorts the names and the tooltip sorts the values. That's fine for us, thank you.

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

3 participants