Title: Restyling a date axis with timestamp data changes axis type to numeric · Issue #2144 · plotly/plotly.js · GitHub
Open Graph Title: Restyling a date axis with timestamp data changes axis type to numeric · Issue #2144 · plotly/plotly.js
X Title: Restyling a date axis with timestamp data changes axis type to numeric · Issue #2144 · plotly/plotly.js
Description: Starting with Plotly.js 1.31.0, restyling a plot using timestamps instead of date strings turns the axis from a date axis to a numeric axis, even if the original data was in the same format, as can be seen in this codepen. In 1.30.0, thi...
Open Graph Description: Starting with Plotly.js 1.31.0, restyling a plot using timestamps instead of date strings turns the axis from a date axis to a numeric axis, even if the original data was in the same format, as can...
X Description: Starting with Plotly.js 1.31.0, restyling a plot using timestamps instead of date strings turns the axis from a date axis to a numeric axis, even if the original data was in the same format, as can...
Opengraph URL: https://github.com/plotly/plotly.js/issues/2144
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Restyling a date axis with timestamp data changes axis type to numeric","articleBody":"Starting with Plotly.js 1.31.0, restyling a plot using timestamps instead of date strings turns the axis from a date axis to a numeric axis, even if the original data was in the same format, as can be seen in [this codepen](https://codepen.io/jdugge/pen/zPBQgp). In 1.30.0, this didn't happen.\r\n\r\n```\r\nvar trace1 = {\r\n x: [1509583143188, 1510187943188], \r\n y: [1, 2]\r\n};\r\n\r\nvar data = [ trace1];\r\n\r\nvar layout = {\r\n title:'Line and Scatter Plot',\r\n xaxis: { type: 'date'}\r\n};\r\n\r\nPlotly.newPlot('myDiv', data, layout);\r\n\r\n// Restyling with the same data turns the axis from date to numeric type\r\nPlotly.restyle('myDiv', {x: [[1509441408043, 1510046208043]], y: [[1, 2]]})\r\n```","author":{"url":"https://github.com/jdugge","@type":"Person","name":"jdugge"},"datePublished":"2017-11-06T19:56:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/2144/plotly.js/issues/2144"}
| 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:1fee6ac6-1801-d900-d697-9404d1e60fa5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE84:3C7D61:FF6791:15ACF48:6A556952 |
| html-safe-nonce | 1c453cc82621b1284baa886dfef264499cdad29dde056252eca1d29f31d3cb77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTg0OjNDN0Q2MTpGRjY3OTE6MTVBQ0Y0ODo2QTU1Njk1MiIsInZpc2l0b3JfaWQiOiI2NzE0ODEzNDA2MzQ2ODMyMjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bd34b4e88bbb710e6b7b3c820587fc866aef34d496b6bb821cc72d777d0af75d |
| hovercard-subject-tag | issue:271600523 |
| 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.js/2144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d3cc699fa820779aa4a1df639b2acb5d82f904cb7d7fdc4dc3b1fb814a20401/plotly/plotly.js/issues/2144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d3cc699fa820779aa4a1df639b2acb5d82f904cb7d7fdc4dc3b1fb814a20401/plotly/plotly.js/issues/2144 |
| og:image:alt | Starting with Plotly.js 1.31.0, restyling a plot using timestamps instead of date strings turns the axis from a date axis to a numeric axis, even if the original data was in the same format, as can... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdugge |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| 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 | 8201d0b7bc32164c4662de52242e463a356df543 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width