-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
NdOverlay messing up legend item order #5503
Comments
So it looks like this is alphabetical order, is there a way to override this behavior? |
See holoviz/hvplot#551 ; it's a bit of a mess! |
I imagine there's just a sort or sort_values somewhere in the code that sorts legend items alphabetically, maybe this one. Finding it and removing it should solve the issue holoviews/holoviews/core/data/pandas.py Line 174 in 3afce15
|
That's surely part of it, but different Elements apparently currently act differently (see examples in holoviz/hvplot#551), and Bokeh also does sorting. I think sorting is a useful thing to support as an option, but letting the user have complete control over the order is also important. I'm not sure how best to achieve that, and in any case we should document how it's achieved. PRs welcome! |
Having the same issue as another user (#4082),
with plotly backend:
bokeh backend:
It reorders to five, four, one, three, two for some reason, which for obvious reasons can make a plot confusing for a reader. Is there a workaround for this? Thanks
hv version 1.15.1
The text was updated successfully, but these errors were encountered: