Title: Feature request: Axis boundaries · Issue #887 · plotly/plotly.js · GitHub
Open Graph Title: Feature request: Axis boundaries · Issue #887 · plotly/plotly.js
X Title: Feature request: Axis boundaries · Issue #887 · plotly/plotly.js
Description: Hi, I just recently started using your plotting library (which is awesome by the way) to do some heatmap plots. One of the main complaints I've received have been the ability to pan outside the plot's boundaries (just click and drag the ...
Open Graph Description: Hi, I just recently started using your plotting library (which is awesome by the way) to do some heatmap plots. One of the main complaints I've received have been the ability to pan outside the plo...
X Description: Hi, I just recently started using your plotting library (which is awesome by the way) to do some heatmap plots. One of the main complaints I've received have been the ability to pan outside the...
Opengraph URL: https://github.com/plotly/plotly.js/issues/887
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: Axis boundaries","articleBody":"Hi, I just recently started using your plotting library (which is awesome by the way) to do some heatmap plots. One of the main complaints I've received have been the ability to pan outside the plot's boundaries (just click and drag the plot outside the viewport and suddenly the axis range point to some non-data containing area). While this can be mitigated with the `fixedrange` attribute, you end up losing the pan and zoom features for that axis.\n\nSo, I was thinking that maybe adding axis boundaries could be a thing? Maybe two more properties could be added to the axes: `bounds` and `boundsmode`. `bounds` gets checked in the panning and zooming logic and, if set, it constrains the range to the specified bounds. `boundsmode` allows the bounds to be computed automatically from the plot (like `autorange`). That way users can zoom and pan al around the plot, but cannot get outside the plot bounds.\n\nAs proof of concept I have created this pull request g-i-o-/plotly.js#1 on my fork and was thinking maybe you guys could check it out comment on how to improve and, if you like it, add it or something like that.\n\n---\n1. Here we have a nice little heatmap:\n \n2. But then some user starts using with the panning tool a bit too much:\n \n","author":{"url":"https://github.com/g-i-o-","@type":"Person","name":"g-i-o-"},"datePublished":"2016-08-26T21:11:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/887/plotly.js/issues/887"}
| 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:cc9a69b0-1e1f-3b36-de77-4c77c95182a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1DE:13AFBF:333112:4AA375:6A57730F |
| html-safe-nonce | 72cb22211adf840f93b6e4b66a462a149b9e409e7dbe05f3d590d98dda59092b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMURFOjEzQUZCRjozMzMxMTI6NEFBMzc1OjZBNTc3MzBGIiwidmlzaXRvcl9pZCI6IjUxOTAyNDU2NDQ2MDAyNDU5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a2c589392ec97c129f1a5fe659aecfd454f3e3ccbef544a99f7f00d8f12c4636 |
| hovercard-subject-tag | issue:173544519 |
| 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/887/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c52cb2cf40c4fbdbb7a780a0be87e57098ff1e0e0465a788712f65dc08837e4e/plotly/plotly.js/issues/887 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c52cb2cf40c4fbdbb7a780a0be87e57098ff1e0e0465a788712f65dc08837e4e/plotly/plotly.js/issues/887 |
| og:image:alt | Hi, I just recently started using your plotting library (which is awesome by the way) to do some heatmap plots. One of the main complaints I've received have been the ability to pan outside the plo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | g-i-o- |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | c0ca805e53f128ba1f966be1d3ccd81d0d1959c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width