René's URL Explorer Experiment


Title: Use Plotly.react() to redraw in Shiny if layout.transition is populated by cpsievert · Pull Request #2001 · plotly/plotly.R · GitHub

Open Graph Title: Use Plotly.react() to redraw in Shiny if layout.transition is populated by cpsievert · Pull Request #2001 · plotly/plotly.R

X Title: Use Plotly.react() to redraw in Shiny if layout.transition is populated by cpsievert · Pull Request #2001 · plotly/plotly.R

Description: This change makes it easier to implement smooth transitions when renderPlotly() is performing a redraw (by specifying layout(transition = ...)), which from my limited experimentation works reasonably well with scatter traces, especially if you have xaxis.range/yaxis.range fixed "globally". Here's a basic example: library(shiny) library(plotly) ui <- fluidPage( plotlyOutput("p") ) server <- function(input, output, session) { output$p <- renderPlotly({ invalidateLater(1000) plot_ly() %>% add_markers(x = rnorm(100), y = rnorm(100), alpha = 0.2) %>% layout( xaxis = list(range = c(-3, 3)), yaxis = list(range = c(-3, 3)), transition = list( duration = 1000, easing = "linear" ) ) }) } shinyApp(ui, server) Unfortunately Plotly.react() doesn't seem to support smooth transitions of non-scatter traces very well, but one can leverage workarounds such as https://plotly-r.com/animating-views.html#animation-support to implement things like animated "bars"

Open Graph Description: This change makes it easier to implement smooth transitions when renderPlotly() is performing a redraw (by specifying layout(transition = ...)), which from my limited experimentation works reasonab...

X Description: This change makes it easier to implement smooth transitions when renderPlotly() is performing a redraw (by specifying layout(transition = ...)), which from my limited experimentation works reasonab...

Opengraph URL: https://github.com/plotly/plotly.R/pull/2001

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:61c86570-81b9-72dd-a7c4-62c1bfdc6feb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCF9C:27E5CD:F62320:13D93B9:6B010028
html-safe-noncefba5d222ac5c65553a1bd68742599d240240350af5a55b2678a3b508094bfc6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjlDOjI3RTVDRDpGNjIzMjA6MTNEOTNCOTo2QjAxMDAyOCIsInZpc2l0b3JfaWQiOiI1NDc2ODI5NDg1MDIwNjEwOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf1eab9e2e65305991a8c59502fa77a9de2bf1c858a11c495dc4f84891211abf1
hovercard-subject-tagpull_request:738018668
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/plotly/plotly.R/pull/2001/files
twitter:imagehttps://avatars.githubusercontent.com/u/1365941?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1365941?s=400&v=4
og:image:altThis change makes it easier to implement smooth transitions when renderPlotly() is performing a redraw (by specifying layout(transition = ...)), which from my limited experimentation works reasonab...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579179
octolytics-dimension-repository_nwoplotly/plotly.R
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579179
octolytics-dimension-repository_network_root_nwoplotly/plotly.R
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/plotly/plotly.R/pull/2001/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fpull%2F2001%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.R%2Fpull%2F2001%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=plotly%2Fplotly.R
Reloadhttps://github.com/plotly/plotly.R/pull/2001/files
Reloadhttps://github.com/plotly/plotly.R/pull/2001/files
Reloadhttps://github.com/plotly/plotly.R/pull/2001/files
plotlyhttps://github.com/plotly
plotly.Rhttps://github.com/plotly/plotly.R
Codehttps://github.com/plotly/plotly.R
Issues716 (716)https://github.com/plotly/plotly.R/issues
Pull requests47 (47)https://github.com/plotly/plotly.R/pulls
Discussionshttps://github.com/plotly/plotly.R/discussions
Actionshttps://github.com/plotly/plotly.R/actions
Projectshttps://github.com/plotly/plotly.R/projects
Wikihttps://github.com/plotly/plotly.R/wiki
Security and qualityhttps://github.com/plotly/plotly.R/security
Insightshttps://github.com/plotly/plotly.R/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fplotly%2Fplotly.R%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fplotly%2Fplotly.R%2Fissues%2Fnew%2Fchoose
cpsieverthttps://github.com/cpsievert
masterhttps://github.com/plotly/plotly.R/tree/master
shiny-react-transitionhttps://github.com/plotly/plotly.R/tree/shiny-react-transition
Conversation 0 https://github.com/plotly/plotly.R/pull/2001
Commits 2 https://github.com/plotly/plotly.R/pull/2001/commits
Checks 0 https://github.com/plotly/plotly.R/pull/2001/checks
Files changed https://github.com/plotly/plotly.R/pull/2001/files
Please reload this pagehttps://github.com/plotly/plotly.R/pull/2001/files
Use Plotly.react() to redraw in Shiny if layout.transition is populated https://github.com/plotly/plotly.R/pull/2001/files#top
Show all changes 2 commits https://github.com/plotly/plotly.R/pull/2001/files
3c58541 Use Plotly.react() to redraw in Shiny if layout.transition is populated cpsievert Sep 4, 2021 https://github.com/plotly/plotly.R/pull/2001/commits/3c5854104e1de6033d453d6eee6917963234af49
d39e06c update news cpsievert Sep 20, 2021 https://github.com/plotly/plotly.R/pull/2001/commits/d39e06c717aa140d3136129c8aaed078f393c064
Clear filters https://github.com/plotly/plotly.R/pull/2001/files
Please reload this pagehttps://github.com/plotly/plotly.R/pull/2001/files
Please reload this pagehttps://github.com/plotly/plotly.R/pull/2001/files
NEWS.md https://github.com/plotly/plotly.R/pull/2001/files#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197ea
plotly.js https://github.com/plotly/plotly.R/pull/2001/files#diff-03e4501880f3898c2900c4fdf7b773f1a0b902f31fc3c765d41b34372b4559ef
NEWS.mdhttps://github.com/plotly/plotly.R/pull/2001/files#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197ea
View file https://github.com/plotly/plotly.R/blob/d39e06c717aa140d3136129c8aaed078f393c064/NEWS.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/plotly/plotly.R/pull/2001/{{ revealButtonHref }}
https://github.com/plotly/plotly.R/pull/2001/files#diff-51920e95310ebfbc1ae31709f3b95f89afffbf4f1a6e38e8b2b406e2fb6197ea
inst/htmlwidgets/plotly.jshttps://github.com/plotly/plotly.R/pull/2001/files#diff-03e4501880f3898c2900c4fdf7b773f1a0b902f31fc3c765d41b34372b4559ef
View file https://github.com/plotly/plotly.R/blob/d39e06c717aa140d3136129c8aaed078f393c064/inst/htmlwidgets/plotly.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/plotly/plotly.R/pull/2001/{{ revealButtonHref }}
https://github.com/plotly/plotly.R/pull/2001/files#diff-03e4501880f3898c2900c4fdf7b773f1a0b902f31fc3c765d41b34372b4559ef
https://github.com/plotly/plotly.R/pull/2001/files#diff-03e4501880f3898c2900c4fdf7b773f1a0b902f31fc3c765d41b34372b4559ef
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.