René's URL Explorer Experiment


Title: Choropleth maps don't reset accurately when layout.geo.scope is changed · Issue #3831 · plotly/plotly.js · GitHub

Open Graph Title: Choropleth maps don't reset accurately when layout.geo.scope is changed · Issue #3831 · plotly/plotly.js

X Title: Choropleth maps don't reset accurately when layout.geo.scope is changed · Issue #3831 · plotly/plotly.js

Description: First and foremost, I thought I would mention that this issue is only occurring with Plotly.react as I was able to implement a correct alternative by using Plotly.newPlot but unfortunately means that I won't be able to use react-plotly f...

Open Graph Description: First and foremost, I thought I would mention that this issue is only occurring with Plotly.react as I was able to implement a correct alternative by using Plotly.newPlot but unfortunately means th...

X Description: First and foremost, I thought I would mention that this issue is only occurring with Plotly.react as I was able to implement a correct alternative by using Plotly.newPlot but unfortunately means th...

Opengraph URL: https://github.com/plotly/plotly.js/issues/3831

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Choropleth maps don't reset accurately when layout.geo.scope is changed","articleBody":"First and foremost, I thought I would mention that this issue is only occurring with `Plotly.react` as I was able to implement a correct alternative by using `Plotly.newPlot` but unfortunately means that I won't be able to use react-plotly for this component. \r\n\r\nWith that out of the way, the bug occurs when the layout scope is changed and either 1. a double click event is triggered or 2. reset is pressed in the mode bar. When the plot is changed through the dropdown though, there is no issue. All examples below can be reproduced in [this code pen](https://codepen.io/mbkupfer/pen/BEXONJ?editors=0010). \r\n\r\nIn cases where scope is not 'usa', the reset changed the lon/lat values to whatever the initial plot's geo scope was set at. This is very pronounced when switching from 'world' to 'north america', thus I chose that for the example, but this occurs in any situation. If the initial plot is set to 'north america', then it would be the reverse.\r\n\r\nIn cases where the plot is changed to 'usa' though, the js actually throws an error! The error is: \r\n`TypeError: centerPx is null`. \r\n\r\nSo this is actually two errors, but they both seem to have the same root cause. \r\n\r\nLet me know if I can provide any more clarity. ","author":{"url":"https://github.com/mbkupfer","@type":"Person","name":"mbkupfer"},"datePublished":"2019-05-03T04:39:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/3831/plotly.js/issues/3831"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ef2e3484-2a25-8d02-0012-69081f4de96b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC16E:1D308B:ED3CB1:154FD85:6A5898CC
html-safe-nonce4e2f048a8ad8d4fc682a2fdf5e2408733d9d409418378cc888a01f7ea92ae77f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTZFOjFEMzA4QjpFRDNDQjE6MTU0RkQ4NTo2QTU4OThDQyIsInZpc2l0b3JfaWQiOiIzNjEyNzQzNjg4NzgxMzM4ODI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace138711c2ff44424e52828711f30c48dae94befb27bfcc82dd270ccdb9d29066
hovercard-subject-tagissue:439883603
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/3831/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1139fb51709bfd2078b577a2e7b0e3ae3da1a67043b4fc4ca64495282ee659c7/plotly/plotly.js/issues/3831
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1139fb51709bfd2078b577a2e7b0e3ae3da1a67043b4fc4ca64495282ee659c7/plotly/plotly.js/issues/3831
og:image:altFirst and foremost, I thought I would mention that this issue is only occurring with Plotly.react as I was able to implement a correct alternative by using Plotly.newPlot but unfortunately means th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamembkupfer
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id45646037
octolytics-dimension-repository_nwoplotly/plotly.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id45646037
octolytics-dimension-repository_network_root_nwoplotly/plotly.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/3831#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F3831
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F3831
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.js
Reloadhttps://github.com/plotly/plotly.js/issues/3831
Reloadhttps://github.com/plotly/plotly.js/issues/3831
Reloadhttps://github.com/plotly/plotly.js/issues/3831
Please reload this pagehttps://github.com/plotly/plotly.js/issues/3831
plotly https://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Please reload this pagehttps://github.com/plotly/plotly.js/issues/3831
Notifications https://github.com/login?return_to=%2Fplotly%2Fplotly.js
Fork 2k https://github.com/login?return_to=%2Fplotly%2Fplotly.js
Star 18.3k https://github.com/login?return_to=%2Fplotly%2Fplotly.js
Code https://github.com/plotly/plotly.js
Issues 773 https://github.com/plotly/plotly.js/issues
Pull requests 56 https://github.com/plotly/plotly.js/pulls
Actions https://github.com/plotly/plotly.js/actions
Security and quality 0 https://github.com/plotly/plotly.js/security
Insights https://github.com/plotly/plotly.js/pulse
Code https://github.com/plotly/plotly.js
Issues https://github.com/plotly/plotly.js/issues
Pull requests https://github.com/plotly/plotly.js/pulls
Actions https://github.com/plotly/plotly.js/actions
Security and quality https://github.com/plotly/plotly.js/security
Insights https://github.com/plotly/plotly.js/pulse
Choropleth maps don't reset accurately when layout.geo.scope is changedhttps://github.com/plotly/plotly.js/issues/3831#top
https://github.com/etpinard
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/mbkupfer
mbkupferhttps://github.com/mbkupfer
on May 3, 2019https://github.com/plotly/plotly.js/issues/3831#issue-439883603
this code penhttps://codepen.io/mbkupfer/pen/BEXONJ?editors=0010
etpinardhttps://github.com/etpinard
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.