holoviz / holoviz/hvplot

color not working for bar plot with Plotly backend

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

Description

I would expect the `color` argument to work the same for the Bokeh and Plotly plotting backends when plotting a `bar` plot. But they don't.

![image](https://user-images.githubusercontent.com/42288570/224509689-01e168d8-67a0-4f2b-b784-5eb7838b7f7e.png)

```python
import pandas as pd
import hvplot.pandas # noqa

hvplot.extension("bokeh")
pd.DataFrame({
"framework": ["hvPlot", "HoloViews", "Panel"],
"stars": [700, 2400, 2600]
}).hvplot.bar(x="framework", y="stars", color="gold", title="Bar Plot of Github Stars as of March 2023", ylabel="⭐")

hvplot.extension("plotly")
pd.DataFrame({
"framework": ["hvPlot", "HoloViews", "Panel"],
"stars": [700, 2400, 2600]
}).hvplot.bar(x="framework", y="stars", color="gold", title="Bar Plot of Github Stars as of March 2023", ylabel="⭐")
```

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.