plotly / plotly/plotly.js

Legend cannot be scrolled to the end if `xref`/`yref` is set to `container`

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

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

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

説明

If a legend is anchored to the container, the container sizes aren't taken into account when the legend sizes are computed.

In the example codepen legends aren't visible fully and it is not possible to scroll then to the end.

function computeLegendDimensions should take into account the container sizes for calculation of _maxHeight and _maxWidth

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

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

はじめの一歩

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

調査の方向性

src/components/legend/draw.js の computeLegendDimensions から始め、xref/yref を container に設定したリンク先の CodePen を使って問題を再現します。コンテナのサイズが _maxHeight と _maxWidth にどのように影響するかを確認します。完了条件は、凡例全体が表示され、末尾までスクロールできることです。

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

評価

技術スタック
javascript
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

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

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