Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Allow access data on the `plotly_doubleclick` event

未關閉
#7,303 1 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
javascript

研究方向

從連結的 CodePen 重現以及所參照的 plotly.js issue 1546 和 react-plotly.js issue 257 開始。追蹤 plotly_click 和 plotly_doubleclick 的分派方式,然後驗證雙擊處理常式可以存取相關資料,且預期的單擊行為已定義。完成的標準是,所要求的雙擊資料存取能夠正常運作,且互動行為已由測試涵蓋。

由索引模型根據 Issue 內容生成。

描述

feature P2

The double click event will trigger the single click event as well as reported in https://github.com/plotly/plotly.js/issues/1546. But the issue has been closed.

Here's the example showing the issue:
https://codepen.io/Lexachoc/pen/qEWZJxb

Only the single click event plotly_click can access the data.

There are usecases to access the data points on double click e.g., in https://github.com/plotly/react-plotly.js/issues/257.

It would be nice to allow access the data also on double click. And maybe also to avoid triggering a single-click event. (which will solve the issue report in https://github.com/plotly/plotly.js/issues/1546)

主要語言
JavaScript
星號
18.4k
分支
2k
平均合併
1 天 21 小時
30 天內合併 PR
18

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

plotly/plotly.js 的其他 Issue

查看 plotly/plotly.js 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。