plotly / plotly/plotly.py

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

オープン
#5,428 コメント 4 件 リアクション 0 件 担当者 1 名 GitHub で見る

@jmaddalena がすでに取り組んでいます。

2026年1月29日 から。

P2
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。