holoviz / holoviz/hvplot

how to sort grouped bar charts

Open
#401 8 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

The grouped bar chart seems to sort alphabetically by group name, column A in my example below. However, I'd like to sort the chart by the values of column B. `df.sort_values` doesn't seem to work.. Could you please let me know how to sort bart charts like this? Thanks!
```python
df = pd.DataFrame([['group B', 10, 30],['group A',20, 40],['group C',15, 10]], columns=['A','B','C'])
df.sort_values(by='B').hvplot.bar('A',['B','C'])
```

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.