holoviz / holoviz/hvplot

Odd behaviour in order of hvplot bars given number of columns.

Open
#1,277 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

When dataframe length is > 10 the order of bars are reversed.

#### ALL software version info
bokeh==3.3.1
holoviews==1.18.0
hvplot==0.9.1
jupyterlab==4.0.10
pandas==2.1.3

Python 3.10.12

#### Description of expected behavior and the observed behavior
```python
import pandas as pd
import hvplot.pandas

# Create dataframe of length 1-10 and the ordering is fine
df = pd.DataFrame({col: range(20) for col in range(10)})

# Nice ordering.
chart_1 = df.count().to_frame().T.hvplot.bar(rot=90, width=1400, height=500)
chart_1

# Create dataframe of lenght > 10 and the ordering is now reversed
df = pd.DataFrame({col: range(20) for col in range(11)})

# Reverse ordering.
chart_2 = df.count().to_frame().T.hvplot.bar(rot=90, width=1400, height=500)
chart_2
```

![image](https://github.com/holoviz/hvplot/assets/31582215/354f646c-4369-4425-95cd-23cb0ee0b6cf)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.