Cannot overlay hvplot labels on inverted axes.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 124
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 1
Description
Here, the labels don't show.
```python
import pandas as pd
import hvplot.pandas
import holoviews as hv
df = pd.read_csv(
"https://raw.githubusercontent.com/ajstarks/dubois-data-portraits/master/challenge/2024/challenge03/data.csv",
header=None,
names=["year", "acres"],
skiprows=1
)
df.loc[11, "year"] = 1886 # from 1888 to 1886
df_0 = df.iloc[[0]]
df_n = df.iloc[[-1]]
bar = df.hvplot.bar("year", "acres").opts(
color="#EF3D58", bar_width=0.4, line_alpha=0.25
)
(bar * df_0.hvplot.labels("year", "acres", "acres")).opts(
invert_axes=True,
invert_yaxis=True,
height=750,
ylabel="",
xlabel="",
title="Acres of Land Owned By Negroes\nin Georgia.".upper(),
# xformatter=NumeralTickFormatter(format="0a"),
toolbar="disable",
)
```
Contributor guide
Assessment
This issue has not been assessed yet.