René's URL Explorer Experiment


Title: [FEATURE]: Enable click and hover events anywhere · Issue #7699 · plotly/plotly.js · GitHub

Open Graph Title: [FEATURE]: Enable click and hover events anywhere · Issue #7699 · plotly/plotly.js

X Title: [FEATURE]: Enable click and hover events anywhere · Issue #7699 · plotly/plotly.js

Description: Summary As part of an ongoing Plotly Professional Services contract, Kobold Metals has requested multiple feature requests/bug fixes for Plotly.js. One of these feature requests is the ability to enable hover and click events anywhere on...

Open Graph Description: Summary As part of an ongoing Plotly Professional Services contract, Kobold Metals has requested multiple feature requests/bug fixes for Plotly.js. One of these feature requests is the ability to e...

X Description: Summary As part of an ongoing Plotly Professional Services contract, Kobold Metals has requested multiple feature requests/bug fixes for Plotly.js. One of these feature requests is the ability to e...

Opengraph URL: https://github.com/plotly/plotly.js/issues/7699

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE]: Enable click and hover events anywhere","articleBody":"# Summary\n\nAs part of an ongoing Plotly Professional Services contract, Kobold Metals has requested multiple feature requests/bug fixes for Plotly.js. One of these feature requests is the ability to enable hover and click events anywhere on the plot area, not just directly over trace data points.\n\nThis feature enhancement would be useful for:\n- Creating custom spikelines or crosshairs that track cursor position across the entire plot\n- Clicking on layout images (e.g., drill hole images) to determine coordinates/depth at the click location\n- Distance measurement between two arbitrary points\n\n# Problem Statement\n\nCurrently, Plotly.js hover and click events (`plotly_hover`, `plotly_click`) only fire when the cursor is directly over a trace data point. The events do not fire when the cursor is in empty plot space between data points.\n\n**Key Decision:** How should we expose this functionality, and what should the event data contain when no trace is under the cursor?\n\n# Proposed Solution\n\n### API\n\nAdd two new opt-in boolean layout attributes. Both would default to `false`.\n\n```js\nlayout: {\n  hoveranywhere: true,\n  clickanywhere: true\n}\n```\n\n### Details\n- Use existing `plotly_hover` and `plotly_click` events\n- Need some sort of throttling/limiting number of events to prevent performance overload\n\n# Implementation Plan (with rough timeline)\n\n1. Add attributes and defaults (Week 1)\n   - Add `hoveranywhere` and `clickanywhere` attributes to `src/components/fx/layout_attributes.js`\n   - Add default value coercion in `src/components/fx/layout_defaults.js`\n\n2. Modify hover logic (Week 1-2)\n   - In `src/components/fx/hover.js`, modify the `_hover()` function\n   - When `hoverData` is empty but `hoveronanywhere` is true, emit event with cursor coordinates\n\n3. Modify click logic (Week 2-3)\n   - In `src/components/fx/click.js`, add handling for `clickonanywhere`\n   - Calculate click coordinates in data space even when no trace is hit\n\n4. Testing (Week 3)\n   - Write mock and Jasmine tests for this feature\n\n# Questions + Things to consider\n\n1. Should we use new event names (`plotly_hover_anywhere`) or reuse existing events?\n2. Should `clickonanywhere` also affect double-click events?\n3. Multiple subplots: I believe events should not fire when over the gaps between subplots, right? Same with being outside the plot area of a single-plot figure'\n4. Multiple overlaid axes: do we show the values of both/all axes at the same position?","author":{"url":"https://github.com/alexshoe","@type":"Person","name":"alexshoe"},"datePublished":"2026-01-28T22:04:53Z","url":"https://github.com/plotly/plotly.js/issues/7699"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bf7c8020-6466-64ab-748a-cbe288224cdb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id988A:36A3E:DB290D:1257AAA:6B01053F
html-safe-nonce9ba650455ba48dbd6df315c5df637b1cd397743613cd53b139bf509cf4b66f84
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODhBOjM2QTNFOkRCMjkwRDoxMjU3QUFBOjZCMDEwNTNGIiwidmlzaXRvcl9pZCI6IjI0NzM1NDM5ODYyMjA5NTkwMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1813b9d28abc04773f4ec5a1a93e3fc7dfb01c3fcbfab70e1d017e298e9c0e5d
hovercard-subject-tagissue:3867643709
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/7699/issue_layout
twitter:imagehttps://opengraph.githubassets.com/be2ad7b447217c22d1e6797aa549b508f73f1f36971eb1c9d2f3024b34d3f392/plotly/plotly.js/issues/7699
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be2ad7b447217c22d1e6797aa549b508f73f1f36971eb1c9d2f3024b34d3f392/plotly/plotly.js/issues/7699
og:image:altSummary As part of an ongoing Plotly Professional Services contract, Kobold Metals has requested multiple feature requests/bug fixes for Plotly.js. One of these feature requests is the ability to e...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealexshoe
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/7699#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F7699
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F7699
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/7699
Reloadhttps://github.com/plotly/plotly.js/issues/7699
Reloadhttps://github.com/plotly/plotly.js/issues/7699
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/7699
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/7699
#7707https://github.com/plotly/plotly.js/pull/7707
[FEATURE]: Enable click and hover events anywherehttps://github.com/plotly/plotly.js/issues/7699#top
#7707https://github.com/plotly/plotly.js/pull/7707
https://github.com/emilykl
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com/alexshoe
alexshoehttps://github.com/alexshoe
on Jan 28, 2026https://github.com/plotly/plotly.js/issues/7699#issue-3867643709
alexshoehttps://github.com/alexshoe
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
on Jan 28, 2026https://github.com/plotly/plotly.js/issues/7699#event-22359216921
https://github.com/alexshoe
alexshoehttps://github.com/alexshoe
on Jan 28, 2026https://github.com/plotly/plotly.js/issues/7699#issuecomment-3814171987
@emilyklhttps://github.com/emilykl
@robertcollar-koboldhttps://github.com/robertcollar-kobold
@alexcjohnsonhttps://github.com/alexcjohnson
camdecosterhttps://github.com/camdecoster
emilyklhttps://github.com/emilykl
on Feb 6, 2026https://github.com/plotly/plotly.js/issues/7699#event-22596561134
alexshoehttps://github.com/alexshoe
Enable Hover and Click Events Anywhere #7707https://github.com/plotly/plotly.js/pull/7707
on Feb 13, 2026https://github.com/plotly/plotly.js/issues/7699#event-22773951739
alexshoehttps://github.com/alexshoe
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7707https://github.com/plotly/plotly.js/pull/7707
on Mar 25, 2026https://github.com/plotly/plotly.js/issues/7699#event-23904507100
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/7699
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/7699
emilyklhttps://github.com/emilykl
featuresomething newhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.