plotly / plotly/plotly.js

[FEATURE]: Method for keyboard users to toggle hoverinfo (esp. for box plots)

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

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

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

説明

Description

As far as I can tell, hoverinfo requires a mouse or touch interface to activate. Keyboard users would benefit from being able to toggle this information, especially for box plots. Is there a property we can access via a modeBarButton (for example) that could toggle the hoverinfo display?

Why should this feature be added?

WCAG SC 2.1.1 (Keyboard) states that mouse actions need to have a keyboard equivalent.
For box plot in particular, the box hover info is not available to keyboard users. Being able to toggle the visibility of this info on a per trace basis, and binding that to a button (or dropdown) would satisfy this case.

Mocks/Designs

Attached a mockup screenshot of what i'd like to achieve:

Image

Best regards,

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

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

はじめの一歩

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

調査の方向性

まず、箱ひげ図で hoverinfo がどのように有効化されるか、また modeBarButton や dropdown のコントロールが trace にどのような影響を与えるかを確認します。trace 単位で hover 情報を切り替えられる、キーボードでアクセス可能なトグルを定義し、ボタンまたは dropdown の動作と箱ひげ図の結果が添付されたデザインと一致するようにします。

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

評価

技術スタック
javascript
領域
accessibility, data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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