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

Stacked bar plot is broken in hvplot 0.11.0 #1429

Open
mosc9575 opened this issue Oct 1, 2024 · 6 comments
Open

Stacked bar plot is broken in hvplot 0.11.0 #1429

mosc9575 opened this issue Oct 1, 2024 · 6 comments
Labels
type: upstream Anything that requires work outside hvPlot

Comments

@mosc9575
Copy link

mosc9575 commented Oct 1, 2024

In the latest version of hvplot plotting stacked bars from a DataFrame with multiple columns is broken.

See the second example in the latest docs.

minimal example

from hvplot.sample_data import us_crime

crime = us_crime.read()
print(type(crime))
crime.head()

crime.hvplot.bar(x='Year', y=['Violent crime total', 'Property crime total'],
                 stacked=True, rot=90, width=800, legend='top_left')

grafik

I y is a string and not a list, the bar plot works!

@hoxbro
Copy link
Member

hoxbro commented Oct 1, 2024

I should have fixed this in HoloViews with holoviz/holoviews#6365, but it has yet to be released.

@maximlt maximlt added this to the 0.11.1 milestone Oct 8, 2024
@maximlt
Copy link
Member

maximlt commented Oct 11, 2024

Fixed on the website by building it with a dev release of HoloViews. The underlying issue will be fixed when HoloViews 1.20 is released.

image

@maximlt maximlt added the type: upstream Anything that requires work outside hvPlot label Oct 11, 2024
@maximlt maximlt removed this from the 0.11.1 milestone Oct 11, 2024
@davidleitch1
Copy link

Just want to note the same problem. Could have saved myself a few hours of work by looking here earlier. cheers

@hadleyrich
Copy link

Is there a dev version published that has this fix?

@maximlt
Copy link
Member

maximlt commented Oct 23, 2024

Yes, you need to install the latest dev version of holoviews.

@hadleyrich
Copy link

Yes, you need to install the latest dev version of holoviews.

Thanks @maximlt for answering. I had missed the fact that it was holoviews upstream and not hvplot so was confused when looking for a dev release and not finding anything above 0.11.0. From your pointer I've now added holoviews@v1.20.0rc0 and it is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: upstream Anything that requires work outside hvPlot
Projects
None yet
Development

No branches or pull requests

5 participants