Title: Hover over filled area: incorrect text · Issue #2399 · plotly/plotly.py · GitHub
Open Graph Title: Hover over filled area: incorrect text · Issue #2399 · plotly/plotly.py
X Title: Hover over filled area: incorrect text · Issue #2399 · plotly/plotly.py
Description: I'm trying to build a stacked area chart, starting from the example provided here. However, the hover text does not always match the hovered area. In the following screen shot, I'm actually over the blue area, close to y = 0. I'm using t...
Open Graph Description: I'm trying to build a stacked area chart, starting from the example provided here. However, the hover text does not always match the hovered area. In the following screen shot, I'm actually over th...
X Description: I'm trying to build a stacked area chart, starting from the example provided here. However, the hover text does not always match the hovered area. In the following screen shot, I'm actually...
Opengraph URL: https://github.com/plotly/plotly.py/issues/2399
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hover over filled area: incorrect text","articleBody":"I'm trying to build a stacked area chart, starting from the example provided [here](https://plotly.com/python/filled-area-plots/#select-hover-points).\r\n\r\nHowever, the hover text does not always match the hovered area. In the following screen shot, I'm actually over the blue area, close to `y = 0`. \r\n\r\n\r\nI'm using the following code to plot online (the aim is to use this in a Dash application).\r\n```\r\nimport plotly.graph_objects as go\r\n\r\nfig = go.Figure()\r\nfor i, y in enumerate([0, 1]):\r\n values=[i, 1 + i, 2 + i, 1 + i, i]\r\n fig.add_trace(go.Scatter(x=[0, 1, 2, 3, 4], y=values,\r\n stackgroup=\"one\",\r\n hoveron = 'points+fills', # select where hover is active\r\n name=f\"Trace {y}\",\r\n text=[f\"\u003cspan\u003eValue: {v}\u003c/span\u003e\" for v in values],\r\n hoverinfo = 'text+x'))\r\nfig.update_layout(\r\n title = \"hover on \u003ci\u003epoints\u003c/i\u003e or \u003ci\u003efill\u003c/i\u003e\",\r\n)\r\n```\r\n\r\nAlso, with the same setting, the label is wrong : with`hoverinfo='text+x'`, the text in the hover is the name of the trace. Note that the hovers on the markers are correct.","author":{"url":"https://github.com/gv-collibris","@type":"Person","name":"gv-collibris"},"datePublished":"2020-04-21T14:26:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/2399/plotly.py/issues/2399"}
| 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:4e159175-99bd-1cd5-4caa-50d4698e5552 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A47C:1751A7:BE392B:1082E37:6A5725C5 |
| html-safe-nonce | 90ee25dc2a778be3cd1667e0965478c14bbc377ce8960319bbef9c5900889ba2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDdDOjE3NTFBNzpCRTM5MkI6MTA4MkUzNzo2QTU3MjVDNSIsInZpc2l0b3JfaWQiOiIzOTQzMzk4NTg3OTQ2NzA2Mzc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8882d5bdf61f515ae5ca876fec5d0a9ea1f4bd5a5c1b5bc80499f4ec216475bc |
| hovercard-subject-tag | issue:604041471 |
| 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/2399/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ffc9706067adb6fb2f2edfe6198a30be913977fd08a8280b196e5783714d762e/plotly/plotly.py/issues/2399 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ffc9706067adb6fb2f2edfe6198a30be913977fd08a8280b196e5783714d762e/plotly/plotly.py/issues/2399 |
| og:image:alt | I'm trying to build a stacked area chart, starting from the example provided here. However, the hover text does not always match the hovered area. In the following screen shot, I'm actually over th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gv-collibris |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width