René's URL Explorer Experiment


Title: [BUG]: `sankey`: `node.x` / `node.y` of `0` is ignored · Issue #8150 · plotly/plotly.js · GitHub

Open Graph Title: [BUG]: `sankey`: `node.x` / `node.y` of `0` is ignored · Issue #8150 · plotly/plotly.js

X Title: [BUG]: `sankey`: `node.x` / `node.y` of `0` is ignored · Issue #8150 · plotly/plotly.js

Description: Description Node coordinates of 0 for node.x or node.yare ignored and the node gets positioned automatically. Screenshots With 0 coords: With close to 0 coords: Steps to reproduce Open Plotly devtools and paste the following into browser...

Open Graph Description: Description Node coordinates of 0 for node.x or node.yare ignored and the node gets positioned automatically. Screenshots With 0 coords: With close to 0 coords: Steps to reproduce Open Plotly devto...

X Description: Description Node coordinates of 0 for node.x or node.yare ignored and the node gets positioned automatically. Screenshots With 0 coords: With close to 0 coords: Steps to reproduce Open Plotly devto...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `sankey`: `node.x` / `node.y` of `0` is ignored","articleBody":"### Description\n\nNode coordinates of `0` for `node.x` or `node.y`are ignored and the node gets positioned automatically.\n\n### Screenshots\n\nWith `0` coords:\n\n\u003cimg width=\"774\" height=\"450\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/337ea34c-0682-417a-baa6-ec082f3b91c5\" />\n\nWith close to `0` coords:\n\n\u003cimg width=\"774\" height=\"450\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5dc5cc29-6514-42c2-86a8-8a9dce1e571d\" />\n\n### Steps to reproduce\n\n- Open Plotly devtools and paste the following into browser devtools:\n```js\nPlotly.newPlot('g', [{\n  type: 'sankey',\n  arrangement: 'fixed',\n  node: {label: ['a', 'b', 'c'], x: [0, 0.5, 0.8], y: [0, 0, 0.7]},\n  link: {source: [0, 1], target: [1, 2], value: [1, 1]}\n}], {margin: {l: 0, r: 0, t: 0, b: 0}});\n```\n- Note that the center of `a` is not in the top left corner of the plot\n\n### Notes\n\n- This issue stems from the fact that the \"Force node position\" loop in `src/traces/sankey/render.js` uses a truthy test (`if(trace.node.x[p] && trace.node.y[p])`), and `0` is falsy\n- The fix is to change the test for missing values to `!= null`\n- The mock `sankey_x_y_with_arrows.json` sets `y: [0, 0, 0]`, so the fix changes its baseline\n- Discovered while working on #7826 \n","author":{"url":"https://github.com/camdecoster","@type":"Person","name":"camdecoster"},"datePublished":"2026-10-27T20:59:24Z","url":"https://github.com/plotly/plotly.js/issues/8150"}

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:8a6724b7-315b-0f64-8d01-4d505464c94d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB2E:3A8E64:7F2CAF:A8A1FE:6B01AE2C
html-safe-nonce2b36d551ac6b5b946c51e57e16ca2592f2fbf9ab21315e5a5542483bf19817d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjJFOjNBOEU2NDo3RjJDQUY6QThBMUZFOjZCMDFBRTJDIiwidmlzaXRvcl9pZCI6IjU2ODQ0NDc5MzQ1NDkxNzU4NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6b0c784c243980d21586554644d9bac2703fd5c429c545e89654414fc9c42880
hovercard-subject-tagissue:6067588440
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/8150/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6d0def0011589915b8d610cc494e1f00d16681f051662906fe9137d037c25547/plotly/plotly.js/issues/8150
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6d0def0011589915b8d610cc494e1f00d16681f051662906fe9137d037c25547/plotly/plotly.js/issues/8150
og:image:altDescription Node coordinates of 0 for node.x or node.yare ignored and the node gets positioned automatically. Screenshots With 0 coords: With close to 0 coords: Steps to reproduce Open Plotly devto...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecamdecoster
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.js/issues/8150#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F8150
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%2F8150
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/8150
Reloadhttps://github.com/plotly/plotly.js/issues/8150
Reloadhttps://github.com/plotly/plotly.js/issues/8150
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/8150
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/8150
#8158https://github.com/plotly/plotly.js/pull/8158
[BUG]: sankey: node.x / node.y of 0 is ignoredhttps://github.com/plotly/plotly.js/issues/8150#top
#8158https://github.com/plotly/plotly.js/pull/8158
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
size: 1https://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22size%3A%201%22
https://github.com/camdecoster
camdecosterhttps://github.com/camdecoster
on Oct 27, 2026https://github.com/plotly/plotly.js/issues/8150#issue-6067588440
https://private-user-images.githubusercontent.com/288066/686759180-337ea34c-0682-417a-baa6-ec082f3b91c5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6Imtle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X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTEyMVQxNDQzNTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYjY3MTdhOTc2ZjliZGI3OWY1MzkxYjNiYzE3NTI0NjE0NjMwODc5NWVlMTE2MDYxYjYxNmI1YmYxNzQ1NGM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.pgshLwJQNB6y0fNN96nROYa4Z5OL8mjLHWFW43QBjWk
Respect explicit node x/y positions in fixed-arrangement Sankey #7826https://github.com/plotly/plotly.js/pull/7826
camdecosterhttps://github.com/camdecoster
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
P3backloghttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P3%22
size: 1https://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22size%3A%201%22
on Oct 27, 2026https://github.com/plotly/plotly.js/issues/8150#event-34411844863
https://github.com/adimalkar
adimalkarhttps://github.com/adimalkar
on Oct 31, 2026https://github.com/plotly/plotly.js/issues/8150#issuecomment-6550841761
@camdecosterhttps://github.com/camdecoster
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/8150
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/8150
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
size: 1https://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22size%3A%201%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.