holoviz / holoviz/hvplot

Setting `color` parameter to a hvplot.paths datashaded plot does not have any effect

Open
#1,443 6 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

#### ALL software version info

Software Version Info

```plaintext
hvplot = 0.10.0
pandas = 2.2.1
```

#### Description of expected behavior and the observed behavior

##### Expected behavior
I expect the lines to be colored with the provided colors.

##### Observed behavior
The default colors are still used, ignoring the provided colors

#### Complete, minimal, self-contained example code that reproduces the issue

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

df = pd.DataFrame({"x": [0, 1, None, 2, 3], "y": [0, 1, None, 2, 3],
'ascending': [True, True, None, False, False]})

df.hvplot.paths('x', 'y', by='ascending', datashade=True, color=['green', 'black'])
```

#### Stack traceback and/or browser JavaScript console output
None.

#### Screenshots or screencasts of the bug in action
![hvplot_color](https://github.com/user-attachments/assets/6555179b-aeb1-494b-be8d-45faee5bf315)

- [x] I may be interested in making a pull request to address this

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.