Hi,
I think I may have discovered a bug where bar charts are not plotted visibly. See the image below where the bars in plots C and D are barely visible. The number of records is in the realm of 20-50, so roughly the same order of magnitude. I donβt understand why they are so faint.
I parsed the code I used to generate this chart.
import polars as pl
import pandas as pd
from plotly.subplots import make_subplots
import plotly.graph_objects as go
df = pl.read_csv(
"https://gist.githubusercontent.com/KeremAslan/c20094b65c4023e8b1d8d6b70fe90f45/raw/bcd44ed1c98ad7021c4b3951e3815d9b22a021a1/stackoverflow_plotly"
)
values = ["value_a", "value_b", "value_c", "value_d"]
groups = ["A", "B", "C", "D", ""]
fig = make_subplots(
# rows=len(values),
# cols=len(groups),
rows=len(groups),
cols=len(values),
shared_xaxes=True,
shared_yaxes=True,
)
for group_index, group in enumerate(groups):
for ix, value in enumerate(values):
p = df.filter(pl.col("group") == group)
fig.add_trace(
go.Bar(
x=pd.to_datetime(df.select("date").to_series()),
y=df.select(value).to_series(),
),
row=group_index + 1,
col=ix + 1,
)
fig.update_layout(showlegend=False)
fig.show()