plotly / plotly/plotly.py

allow boxes of different height on the timeline graph

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

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

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

説明

Hi,

I have a situation where I would like to visualize the burn rate of projects on a timeline. It would be most logical to present this as the height of each box. Currently every row in the timeline graph is of uniform height, and there is no provision for changing the size.

Would it be possible to add a new feature for varying heights within the timeline graph? Something like this (in Plotly Express):

df = pd.DataFrame([
    dict(Task="Project A", Start='2009-01-01', Finish='2009-02-28', Burnrate=200),
    dict(Task="Project B", Start='2009-03-05', Finish='2009-04-15', Burnrate=75),
    dict(Task="Project C", Start='2009-02-20', Finish='2009-05-30', Burnrate=110)
])

fig = px.timeline(df, x_start="Start", x_end="Finish", y="Task", size="Burnrate")
fig.show()

Also, while the boxes can be drawn very slim (low size values), there probably needs to be a minimum row height determined by the label text.

Something similar could probably be built by stacking bar charts or area plots in one facet column, but I think the resulting graph would be too high and might also be visually too complicated.

Cheers,
--Martin

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

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

はじめの一歩

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

調査の方向性

Plotly Express の timeline エントリーポイントと、提供されている Python の例から始めます。Burnrate に基づくさまざまなボックスの高さと、label によって決まる行の最小高さがどのように動作すべきかを確認し、その後、さまざまなサイズを対象とする timeline の例とテストでこの機能を検証します。

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

評価

技術スタック
plotly, python
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

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

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