plotly / plotly/plotly.py

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

Đang mở
#5,428 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@jmaddalena đang làm issue này rồi.

Từ ngày 29/1/2026.

P2
Ngôn ngữ chính
Python
Star
18.8k
Fork
2.8k
Merge trung bình
16 giờ 26 phút
Pull request đã merge (30 ngày)
21

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.