plotly / plotly/plotly.js

Pie chart leader lines are not cleaned up when layout height changes in call to Plotly.react

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

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

bug P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

Version: plotly-1.58.4.js
CodePen: https://codepen.io/tysonliddell/pen/qBRGVzV

When calling Plotly.react to resize a pie chart, the leader lines are left on the graph leaving a mess like the following:

image

If I change datarevision in the layout when calling Plotly.react, the lines are then redrawn properly. Shouldn't the leader lines lines redraw if the layout changes, but the data remains constant though?

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

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

はじめの一歩

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

調査の方向性

提供されたCodePenから始め、plotly-1.58.4.jsを使ってPlotly.react経由でリサイズを再現してください。layoutの高さが変わったときのleader-lineのクリーンアップについて、円グラフの更新パスを追跡してください。その後、変更されていないデータと変更されたlayoutを対象とするリグレッションテストを追加し、古い線が残らないことを確認してください。

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

評価

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

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

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