plotly / plotly/plotly.py

Sunburst plot not rendering without any error or warning message

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

まだ誰も着手していません。

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

説明

I am trying the basic sunburst plot as given here:

import plotly.express as px
data = dict(
    character=["Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"],
    parent=["", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve" ],
    value=[10, 14, 12, 10, 2, 6, 6, 4, 4])

fig = px.sunburst(
    data,
    names='character',
    parents='parent',
    values='value',
)
fig.show()

when I replace the data with the following:

['', 'Is', 'it', 'okay', 'to', 'Can', 'I', 'use', 'a', 'Show', 'me', 'how', 'to', 'do', 'this', 'skip', 'adding']
['', '', 'Is', 'it', 'okay', '', 'Can', 'I', 'use', '', 'Show', 'me', 'how', 'I', 'do', 'I', 'skip']
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

it works fine. But when I add only one more datapoint:

['', 'Is', 'it', 'okay', 'to', 'Can', 'I', 'use', 'a', 'Show', 'me', 'how', 'to', 'do', 'this', 'skip', 'adding', 'I', 'step']
['', '', 'Is', 'it', 'okay', '', 'Can', 'I', 'use', '', 'Show', 'me', 'how', 'I', 'do', 'I', 'skip', '', 'this']
[0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

there is no output. I do not see any warning or error message.

What can be the issue? And if so, there should be some error message raised.

Versions:

Python=3.11.4
Plotly=5.18.0
Pandas=2.1.2

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

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

はじめの一歩

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

調査の方向性

提供されている2つの px.sunburst の再現コードを、Python 3.11.4、Plotly 5.18.0、Pandas 2.1.2 で実行し、17ポイントと19ポイントの入力を比較します。fig.show() から sunburst のレンダリングパスを追跡し、より大きい入力で出力が生成されない理由を特定します。完了の条件は、対象ケースがレンダリングされるか、明確なエラーを報告し、再現コードに対するカバレッジがあることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

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

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