Title: px.timeline loses type of x_end values · Issue #2934 · plotly/plotly.py · GitHub
Open Graph Title: px.timeline loses type of x_end values · Issue #2934 · plotly/plotly.py
X Title: px.timeline loses type of x_end values · Issue #2934 · plotly/plotly.py
Description: While px.timeline uses x_end values as expected and creates the proper graph, trying to display the x_end values either as text or as hoverdata fails import pandas as pd import plotly.express as px import datetime data = pd.DataFrame([{ ...
Open Graph Description: While px.timeline uses x_end values as expected and creates the proper graph, trying to display the x_end values either as text or as hoverdata fails import pandas as pd import plotly.express as px...
X Description: While px.timeline uses x_end values as expected and creates the proper graph, trying to display the x_end values either as text or as hoverdata fails import pandas as pd import plotly.express as px...
Opengraph URL: https://github.com/plotly/plotly.py/issues/2934
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"px.timeline loses type of x_end values","articleBody":"While px.timeline uses x_end values as expected and creates the proper graph,\r\ntrying to display the x_end values either as text or as hoverdata fails\r\n\r\n\r\n\r\n\r\n```python\r\nimport pandas as pd\r\nimport plotly.express as px\r\nimport datetime\r\n\r\ndata = pd.DataFrame([{\r\n 'Start Date': datetime.datetime(2020, 1, 1),\r\n 'End Date': datetime.datetime(2020, 2, 1),\r\n 'Test Date': datetime.datetime(2020, 2, 1),\r\n 'y': 100\r\n},\r\n {\r\n 'Start Date': datetime.datetime(2020, 1, 10),\r\n 'End Date': datetime.datetime(2020, 2, 10),\r\n 'Test Date': datetime.datetime(2020, 2, 10),\r\n 'y': 90\r\n}])\r\n\r\nhover_data = {\r\n 'Start Date': '|%x',\r\n 'End Date': '|%x',\r\n 'Test Date': '|%x'\r\n}\r\n\r\nfig = px.timeline(data, x_start=\"Start Date\", x_end=\"End Date\",\r\n y=\"y\", text='End Date', hover_data=hover_data)\r\nfig.show()\r\n```\r\n","author":{"url":"https://github.com/eyak","@type":"Person","name":"eyak"},"datePublished":"2020-11-25T10:41:59Z","url":"https://github.com/plotly/plotly.py/issues/2934"}
| 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:9ea98a07-60de-f304-c08c-85a1e2e1c343 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CD4:29FFA9:1F21740:2765320:6B01647A |
| html-safe-nonce | baced4c38a0e8910f2e0d851c08d48d09cfc249e8ed4a9f19c184bd82ffe2c06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0Q0OjI5RkZBOToxRjIxNzQwOjI3NjUzMjA6NkIwMTY0N0EiLCJ2aXNpdG9yX2lkIjoiNjU2MzE4OTczMDY4NTU3NjMxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6efda19fed37953e313e8b954ad15a21e7083e7fe0c3f5cb5997b9c234a275b1 |
| hovercard-subject-tag | issue:750703252 |
| 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/2934/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83a954df6611a659d7e3ab96f35ef85a4fd7709296cba4c90afd1f9450fd0769/plotly/plotly.py/issues/2934 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83a954df6611a659d7e3ab96f35ef85a4fd7709296cba4c90afd1f9450fd0769/plotly/plotly.py/issues/2934 |
| og:image:alt | While px.timeline uses x_end values as expected and creates the proper graph, trying to display the x_end values either as text or as hoverdata fails import pandas as pd import plotly.express as px... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eyak |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width