Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG]: `scattergl` text is hidden behind selected markers

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

Start with the linked CodePen reproduction and compare the scattergl behavior with the equivalent scatter trace. Trace scattergl text rendering around the vendor line using ctx2.getImageData mentioned in the report, and review issue #7285 for context. Done means selected text is visible like unselected text, with the reported canvas warning addressed or its scope clarified.

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

説明

bug
Description

scattergl text is hidden behind selected markers

The equivalent scatter trace renders the text correctly.

Reproducible example:

https://codepen.io/Lexachoc/pen/dPvRydx

    mode: "markers+text",
    texttemplate: "x=%{x}",
    selectedpoints: [0],
    selected: {
      textfont: { color: "red" }
    },
    unselected: {
      textfont: {color: 'white'}
    },
Image

For unselect.textfont, both works, only select.textfont is broken for scattergl:

Image
Note

To confirm, uncomment

textposition: 'top-center',
Image

Additional warning observed

When using:

 mode: "markers+text",

or

 mode: "text",

scattergl will throw this warning:

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

caused by this line: var bottomPx = firstTop(ctx2.getImageData(0, 0, l2, l2)); from the vendor package.

Reported before in https://github.com/plotly/plotly.js/issues/7285

主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
1日 19時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

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

plotly/plotly.js のほかの issue

plotly/plotly.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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