plotly / plotly/plotly.js

Scattergl plot rendering issues in Firefox – Missing traces on updates

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

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

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

説明

When updating scattergl plots in Firefox, some traces do not render as expected. This issue does not appear in other browsers, such as Chrome or Edge, where the scattergl traces are rendered as expected. When using scattergl, certain traces may not be displayed properly, resulting in missing visualizations on the graph despite their presence in the data. This issue is particularly noticeable with scattergl plots utilizing WebGL rendering.

The problem is absent when using scatter traces, which rely on SVG rendering, suggesting a potential WebGL compatibility or rendering issue specific to Firefox. The observed behavior occurs consistently across different datasets and setups, suggesting a deeper compatibility problem between WebGL rendering in Firefox and the Plotly scattergl implementation. Furthermore, there are no error messages in the browser console during the issue.

Here is a really simple reproducing example:
https://codepen.io/Puneet-Sharma112/pen/NWQOyVv

I also see a related issue which was created long back but was closed as non-reproducible.

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

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

はじめの一歩

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

調査の方向性

FirefoxでリンクされたCodePenの再現を開始し、scatterglの更新を、動作しているscatter/SVGのケースおよびChromeやEdgeと比較します。再現で問題となっているJavaScript scatterglのWebGLレンダリングパスを追跡します。Firefoxで更新後もすべてのtracesが表示されたままで、既存のscatterの動作や他のブラウザーに影響がない状態が完了条件です。

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

評価

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

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

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