plotly / plotly/plotly.js

With shapes that reference categorical axis, shape is drawn when no category exists

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

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

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

説明

For the following rendered graph, the shape is described like this:

 {
        "line": {
          "color": "yellow",
          "width": 3
        },
        "type": "rect",
        "x0": "A",
        "x1": "A",
        "xref": "x",
        "y0": 0,
        "y1": 0.5,
        "yref": "paper"
      }

There is no category "A" on the x axis, but the shape is still drawn and appears to be drawn at the centre point of the x axis.

image

Here is a codepen:

https://codepen.io/liamconnors/pen/XWLmRae

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

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

はじめの一歩

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

調査の方向性

まず、リンクされた CodePen を実行し、"A" カテゴリのないカテゴリ x 軸に対して図形設定を再現します。カテゴリ軸参照に対する図形のレンダリング経路を追跡します。参照先のカテゴリが存在しない場合に長方形が描画されず、有効なカテゴリ参照では引き続き描画されれば完了です。

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

評価

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

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

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