Filled area in scatterplot does not honor null values
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 18.3k
- フォーク
- 2k
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 28
説明
Opening a new issue as requested here: https://github.com/plotly/plotly.js/issues/1132
When the scatter plot has null values on the y axis, the line drawn by plotly.js is disconnected over this area as expected. However, with fill: 'tozeroy', the filled area still spans the area with null values instead going only from known values to zero.
Short example, can be seen here: https://www.fi.muni.cz/~kas/plots/plotly-issue-7448.html
Plotly.newPlot('somediv', [{
type: "scatter",
mode: "lines",
x: [1,2,3,4,5],
y: [1,2,null,2,1],
fill: 'tozeroy',
}]);
In this example, there is no line drawn beetween (x=2, y=2) and (x=4, y=2) points as expected. There should be no filled area between x = 2 and x = 4 as well.
Thanks!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供されている Plotly.newPlot の再現例から始め、null の y 値に対する散布図の塗りつぶし処理を追跡します。fill: 'tozeroy' が x=2 と x=4 の間の区間を塗りつぶさず、期待される分離した線の動作を維持すれば、修正は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100