Title: enable multiple hover boxes for overlapping/multiple points · Issue #2476 · plotly/plotly.py · GitHub
Open Graph Title: enable multiple hover boxes for overlapping/multiple points · Issue #2476 · plotly/plotly.py
X Title: enable multiple hover boxes for overlapping/multiple points · Issue #2476 · plotly/plotly.py
Description: This has been tested in version 4.7.1. When hover information is shown for points e.g. in a scatter plot, the following situations can occur: there are multiple points on exactly the same coordinates there are multiple points close to th...
Open Graph Description: This has been tested in version 4.7.1. When hover information is shown for points e.g. in a scatter plot, the following situations can occur: there are multiple points on exactly the same coordinat...
X Description: This has been tested in version 4.7.1. When hover information is shown for points e.g. in a scatter plot, the following situations can occur: there are multiple points on exactly the same coordinat...
Opengraph URL: https://github.com/plotly/plotly.py/issues/2476
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"enable multiple hover boxes for overlapping/multiple points","articleBody":"This has been tested in version 4.7.1.\r\n\r\nWhen hover information is shown for points e.g. in a scatter plot, the following situations can occur:\r\n* there are multiple points on exactly the same coordinates\r\n* there are multiple points close to the same coordinates and the markers used to visualize those points overlap in the graph\r\n\r\nHover information for all those multiple points should be shown, especially in cases where the hover information includes additional data not shown directly in the graph.\r\n\r\nThe hvPlot library does this correctly: it shows stacked hover boxes for all the data points under the cursor. Plotly only shows one hover box and it is not clear which one. \r\n\r\nI think this is an actual bug since it makes it easy to miss data and the hover information does not represent the actual data in the graph. \r\n\r\nHere is an example using the Iris data set and Plotly:\r\n```\r\nimport plotly.express as px\r\nfrom bokeh.sampledata import iris\r\ndf = iris.flowers.copy()\r\nfig = px.scatter(df, x=\"sepal_length\", y=\"sepal_width\", color=\"species\",\r\n opacity=0.4, hover_data=[\"petal_length\", \"petal_width\"]\r\n )\r\nfig.show()\r\n```\r\n\r\nThis shows: \r\n\r\n\r\nWith hvPlot:\r\n```\r\ndf.hvplot(kind=\"scatter\", \r\n x=\"sepal_length\", y=\"sepal_width\", by=\"species\", \r\n hover_cols=[\"petal_length\", \"petal_width\"], \r\n alpha=0.4)\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/johann-petrak","@type":"Person","name":"johann-petrak"},"datePublished":"2020-05-16T08:59:26Z","url":"https://github.com/plotly/plotly.py/issues/2476"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bcf8227c-6dee-a3cc-1186-27537e462fcd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC3E:17FB7:60C735:7A0365:6B0112A1 |
| html-safe-nonce | 2b5799d158507bf3a32dc435724ee273b734754ea2ff927ed4e08eb79db36194 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzNFOjE3RkI3OjYwQzczNTo3QTAzNjU6NkIwMTEyQTEiLCJ2aXNpdG9yX2lkIjoiNjc1MDMyMzU4MTc4MTA4Njg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d0c61ecbefc0c1603119eb3863978393721d61b8dddc967cae574428d4318e1 |
| hovercard-subject-tag | issue:619420035 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.py/2476/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd99ff874b352632b7bf0ec37c5ef7ece19af91f6fe1c594215951e038d85d0b/plotly/plotly.py/issues/2476 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd99ff874b352632b7bf0ec37c5ef7ece19af91f6fe1c594215951e038d85d0b/plotly/plotly.py/issues/2476 |
| og:image:alt | This has been tested in version 4.7.1. When hover information is shown for points e.g. in a scatter plot, the following situations can occur: there are multiple points on exactly the same coordinat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johann-petrak |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width