plotly / plotly/plotly.py

Stacked barplot missing certain groups that have non-missing values in the data

Aperta
#5,428 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@jmaddalena ci sta già lavorando.

Dal 29/1/2026.

P2
Lingua principale
Python
Stelle
18.8k
Fork
2.8k
Merge medio
16h 26m
PR unite (30g)
21

Descrizione

I have a very strange bug that I can't seem to diagnose.

Given the following data import:

plot_data = pd.read_csv("example_plot_data.csv")
plot_data['savedate_week'] = pd.to_datetime(plot_data['savedate_week'])

And the following basic plotly code:

import plotly.express as px

fig = px.bar(
        plot_data,
        x="savedate_week",
        y="commander_perc_of_card",
        color="commanders"
    )

fig.show()

Every week should have bars that total 100% and they do indeed in the data. They also do when you click on one of the commanders that has missing data. For example, when you click on Tiamat, the focused bar plot shows that it does have values for savedate_week = '2025-02-03'. And when you click on Ureni of the Unwritten, it has a value for savedate_week = '2025-06-16'. But both these values are missing from the overall stacked barplot.

I am using plotly version 6.2.0.

example_plot_data.csv

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.