plotly / plotly/plotly.js

.textline remains when window size gets large

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

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

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

説明

Hi, thank you for the great library.

I use the pie chart with responsive: true for the graph configuration, and I've noticed that when the window size gets small, the label would be shown outside of the arc with .textline lines:
1

And then the window size gets large again, .textline lines remains even when they are not necessary anymore:
2

I think it is not an intended thing which '.textline' lines are remaining.

It can be reproduced on this codepen with resizing the preview window.

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

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

はじめの一歩

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

調査の方向性

リンクされたCodePenから始め、レスポンシブなプレビューウィンドウのサイズを変更して、円グラフの動作を再現します。リサイズ中に .textline ラベルがどのように作成・更新されるかを追跡します。小さいサイズで表示された線が、ウィンドウが大きくなって不要になったときに削除されれば完了です。

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

評価

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

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

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