Title: Wrong bar layout on the horizontal axis when using 'histogram' in plotly-cartesian · Issue #4429 · plotly/plotly.js · GitHub
Open Graph Title: Wrong bar layout on the horizontal axis when using 'histogram' in plotly-cartesian · Issue #4429 · plotly/plotly.js
X Title: Wrong bar layout on the horizontal axis when using 'histogram' in plotly-cartesian · Issue #4429 · plotly/plotly.js
Description: When using the plotly-cartesian in place of the plotly distribution in the latest version (1.51.3, also reproducible in 1.51.1), for some inputs the histogram bars are incoherently laid out on the horizontal axis. Some other inputs do no...
Open Graph Description: When using the plotly-cartesian in place of the plotly distribution in the latest version (1.51.3, also reproducible in 1.51.1), for some inputs the histogram bars are incoherently laid out on the ...
X Description: When using the plotly-cartesian in place of the plotly distribution in the latest version (1.51.3, also reproducible in 1.51.1), for some inputs the histogram bars are incoherently laid out on the ...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4429
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong bar layout on the horizontal axis when using 'histogram' in plotly-cartesian","articleBody":"When using the `plotly-cartesian` in place of the `plotly` distribution in the latest version (1.51.3, also reproducible in 1.51.1), for some inputs the histogram bars are incoherently laid out on the horizontal axis.\r\n\r\nSome other inputs do not seem cause that issue.\r\n\r\nThe problem does not appear when substituting `https://cdn.plot.ly/plotly-1.51.3.js`.\r\n\r\n### Minimal reproduction of the issue\r\nhttps://jsfiddle.net/c8gfb6rp/2/\r\n```js\r\nvar x1 = [1,3];\r\nvar x2 = [1,20];\r\n\r\nvar trace1 = {\r\n x: x1,\r\n type: \"histogram\",\r\n};\r\nvar trace2 = {\r\n x: x2,\r\n type: \"histogram\",\r\n};\r\nvar data = [trace1, trace2];\r\nvar layout = {barmode: \"stack\", height: 200, width: 400, margin: {t:30, b:30}};\r\n\r\nPlotly.plot(\"plot\", data, layout);\r\n```\r\n\r\n### Screenshots\r\nHere is what it looks like in the jsfiddle above.\r\n\r\nUsing `plotly-cartesian` (bug):\r\n\r\n\r\nUsing `plotly` (expected behavior):\r\n","author":{"url":"https://github.com/cebamps","@type":"Person","name":"cebamps"},"datePublished":"2019-12-17T09:33:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4429/plotly.js/issues/4429"}
| 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:cff159a3-16d1-a81f-74dc-fcc65522d130 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8AC:36361B:991708:D27E94:6A57E40A |
| html-safe-nonce | 3471e81db561053598802a0ee246f03f84b6f37ef23639df3ca5fcfca0579c8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEFDOjM2MzYxQjo5OTE3MDg6RDI3RTk0OjZBNTdFNDBBIiwidmlzaXRvcl9pZCI6IjQ5OTcyNzg3Mzk0MTMzMjg5MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 550c1e6c37f5d593baf67698c4bd610cc6b7931d0495e096e152a91d00e95fa7 |
| hovercard-subject-tag | issue:538945014 |
| 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/4429/issue_layout |
| twitter:image | https://opengraph.githubassets.com/504522f37f9f57b13807aa8940d152b98a209938f5289072215a512b411d10d5/plotly/plotly.js/issues/4429 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/504522f37f9f57b13807aa8940d152b98a209938f5289072215a512b411d10d5/plotly/plotly.js/issues/4429 |
| og:image:alt | When using the plotly-cartesian in place of the plotly distribution in the latest version (1.51.3, also reproducible in 1.51.1), for some inputs the histogram bars are incoherently laid out on the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cebamps |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| 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 | 36b9c371e4e031091f1b89adf913d9e6993943df |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width