René's URL Explorer Experiment


Title: Using opacityscale with surface results in ordering by addition order, not depth · Issue #4918 · plotly/plotly.js · GitHub

Open Graph Title: Using opacityscale with surface results in ordering by addition order, not depth · Issue #4918 · plotly/plotly.js

X Title: Using opacityscale with surface results in ordering by addition order, not depth · Issue #4918 · plotly/plotly.js

Description: Hi all, been using plotly with R for a while now and really loving it - thanks for assembling such a phenomenal program! I'd like to report a bug found while plotting multiple surface objects, which causes them to layer in the order they...

Open Graph Description: Hi all, been using plotly with R for a while now and really loving it - thanks for assembling such a phenomenal program! I'd like to report a bug found while plotting multiple surface objects, whic...

X Description: Hi all, been using plotly with R for a while now and really loving it - thanks for assembling such a phenomenal program! I'd like to report a bug found while plotting multiple surface objects, ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using opacityscale with surface results in ordering by addition order, not depth","articleBody":"Hi all, been using plotly with R for a while now and really loving it - thanks for assembling such a phenomenal program! I'd like to report a bug found while plotting multiple surface objects, which causes them to layer in the order they're added rather than the \"depth\" at which they should really render in the figure. See this [codepen](https://codepen.io/wkumler/pen/GRoZaEK) for code and examples, which are also rendered below as screenshots.\r\n\r\nI previously [posted in ropensci/plotly](https://github.com/ropensci/plotly/issues/1781), but have since learned enough Javascript to assemble the codepen and the issue persists, making me think it's not an R problem. There's also no discussion of the [new \"opacityscale\" feature](https://github.com/plotly/plotly.js/issues/4331) there and a [lively discussion here](https://github.com/plotly/plotly.js/issues?q=is%3Aissue+opacityscale), making me hopeful that more people will have some idea how I might fix this if it isn't a bug.\r\n\r\n### This is great:\r\n\r\n![image](https://user-images.githubusercontent.com/43116923/84544254-c2772b00-acb1-11ea-8420-a4eb99a15208.png)\r\n\r\n### This is less great (same figure rotated to look from below):\r\n\r\n![image](https://user-images.githubusercontent.com/43116923/84544284-d3c03780-acb1-11ea-9381-a1181392f5eb.png)\r\n\r\nIt seems that the surface that renders always on \"top\" is the one that's added last in the data array. If we alter the above code a little bit to render the top layer surface before the middle one, we get some more interesting results:\r\n\r\n`Plotly.newPlot('graphDivReorderOpac', [data_z1, data_z3, data_z2]);` rather than `Plotly.newPlot('graphDivReorderOpac', [data_z1, data_z2, data_z3]);`\r\n\r\n![image](https://user-images.githubusercontent.com/43116923/84544469-2f8ac080-acb2-11ea-86c0-ea6785652c62.png)\r\n\r\n\r\n![image](https://user-images.githubusercontent.com/43116923/84544486-39acbf00-acb2-11ea-9ae7-7f330208d4b2.png)\r\n\r\n\r\nApologies for the repetitive code in the codepen - I really did learn *just* enough JS to make this one and will be hiding behind R wrappers in the future.\r\n","author":{"url":"https://github.com/wkumler","@type":"Person","name":"wkumler"},"datePublished":"2020-06-12T20:42:35Z","url":"https://github.com/plotly/plotly.js/issues/4918"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:61460680-a4fb-b670-3809-e12541c46b1a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB6E2:172B92:26C4A8C:33A83DA:6B01AB0E
html-safe-nonce7353775f143cef8a4918f8920565558a912e328a1ee6db0c7ca0a78a39d04e3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkUyOjE3MkI5MjoyNkM0QThDOjMzQTgzREE6NkIwMUFCMEUiLCJ2aXNpdG9yX2lkIjoiMTUzMzM3MzU4NzgzNzI2NjcwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace81093664944f40fe8e89e29dc47047261ced54d91e0ccc5facac9a4c2a39511
hovercard-subject-tagissue:637993654
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/4918/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b21b362e4914154ca1c5747556687a33b0b43ba72227981c02fb42cb1e1865e8/plotly/plotly.js/issues/4918
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b21b362e4914154ca1c5747556687a33b0b43ba72227981c02fb42cb1e1865e8/plotly/plotly.js/issues/4918
og:image:altHi all, been using plotly with R for a while now and really loving it - thanks for assembling such a phenomenal program! I'd like to report a bug found while plotting multiple surface objects, whic...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewkumler
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/4918#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F4918
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.js%2Fissues%2F4918
Sign uphttps://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/4918
Reloadhttps://github.com/plotly/plotly.js/issues/4918
Reloadhttps://github.com/plotly/plotly.js/issues/4918
plotlyhttps://github.com/plotly
plotly.jshttps://github.com/plotly/plotly.js
Codehttps://github.com/plotly/plotly.js
Issues726 (726)https://github.com/plotly/plotly.js/issues
Pull requests84 (84)https://github.com/plotly/plotly.js/pulls
Actionshttps://github.com/plotly/plotly.js/actions
Security and qualityhttps://github.com/plotly/plotly.js/security
Insightshttps://github.com/plotly/plotly.js/insights
https://github.com/plotly/plotly.js
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/4918
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/4918
Using opacityscale with surface results in ordering by addition order, not depthhttps://github.com/plotly/plotly.js/issues/4918#top
P3backloghttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P3%22
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 12, 2020https://github.com/plotly/plotly.js/issues/4918#issue-637993654
codepenhttps://codepen.io/wkumler/pen/GRoZaEK
posted in ropensci/plotlyhttps://github.com/ropensci/plotly/issues/1781
new "opacityscale" featurehttps://github.com/plotly/plotly.js/issues/4331
lively discussion herehttps://github.com/plotly/plotly.js/issues?q=is%3Aissue+opacityscale
https://user-images.githubusercontent.com/43116923/84544254-c2772b00-acb1-11ea-8420-a4eb99a15208.png
https://user-images.githubusercontent.com/43116923/84544284-d3c03780-acb1-11ea-9381-a1181392f5eb.png
https://user-images.githubusercontent.com/43116923/84544469-2f8ac080-acb2-11ea-86c0-ea6785652c62.png
https://user-images.githubusercontent.com/43116923/84544486-39acbf00-acb2-11ea-9ae7-7f330208d4b2.png
archmojhttps://github.com/archmoj
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#event-3470905353
https://github.com/archmoj
archmojhttps://github.com/archmoj
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-647877459
#4643https://github.com/plotly/plotly.js/pull/4643
codepenhttps://codepen.io/MojtabaSamimi/pen/vYLmKXj?editors=1000
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648298167
@archmojhttps://github.com/archmoj
https://github.com/archmoj
archmojhttps://github.com/archmoj
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648300614
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648302958
https://github.com/archmoj
archmojhttps://github.com/archmoj
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648306165
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648310404
https://github.com/archmoj
archmojhttps://github.com/archmoj
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648326888
demohttps://codepen.io/MojtabaSamimi/pen/MWKmGrr?editors=1000
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 23, 2020https://github.com/plotly/plotly.js/issues/4918#issuecomment-648350373
https://user-images.githubusercontent.com/43116923/85445162-f40cb380-b547-11ea-80e0-b3a806dbefa9.png
Here's my problem illustrated a bit more preciselyhttps://codepen.io/wkumler/pen/abdWKdg?editors=1000
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#issuecomment-2173364956
@gvwilsonhttps://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#event-13185642203
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#issuecomment-2173954293
@gvwilsonhttps://github.com/gvwilson
https://codepen.io/wkumler/pen/abdWKdg?editors=1010https://codepen.io/wkumler/pen/abdWKdg?editors=1010
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#issuecomment-2173957452
@wkumlerhttps://github.com/wkumler
@gvwilsonhttps://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#event-13189119729
https://github.com/archmoj
archmojhttps://github.com/archmoj
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#issuecomment-2174028463
#4643https://github.com/plotly/plotly.js/pull/4643
https://github.com/wkumler
wkumlerhttps://github.com/wkumler
on Jun 17, 2024https://github.com/plotly/plotly.js/issues/4918#issuecomment-2174072400
gvwilsonhttps://github.com/gvwilson
on Jul 8, 2024https://github.com/plotly/plotly.js/issues/4918#event-13422588641
gvwilsonhttps://github.com/gvwilson
on Aug 2, 2024https://github.com/plotly/plotly.js/issues/4918#event-13740586011
gvwilsonhttps://github.com/gvwilson
P3backloghttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P3%22
on Aug 9, 2024https://github.com/plotly/plotly.js/issues/4918#event-13823719465
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/4918
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/4918
P3backloghttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P3%22
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.