René's URL Explorer Experiment


Title: Explicit node coordinates (x/y positions) not fully respected in Sankey diagram · Issue #7758 · plotly/plotly.js · GitHub

Open Graph Title: Explicit node coordinates (x/y positions) not fully respected in Sankey diagram · Issue #7758 · plotly/plotly.js

X Title: Explicit node coordinates (x/y positions) not fully respected in Sankey diagram · Issue #7758 · plotly/plotly.js

Description: We (@janosh) are trying to generate a Sankey diagram but for some reason the explicit coordinates are not fully respected. The "right_a" node has a coordinate of (0.9, 0.05) (top right), but for some reason shows at bottom left. plotly 6...

Open Graph Description: We (@janosh) are trying to generate a Sankey diagram but for some reason the explicit coordinates are not fully respected. The "right_a" node has a coordinate of (0.9, 0.05) (top right), but for so...

X Description: We (@janosh) are trying to generate a Sankey diagram but for some reason the explicit coordinates are not fully respected. The "right_a" node has a coordinate of (0.9, 0.05) (top right), ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Explicit node coordinates (x/y positions) not fully respected in Sankey diagram","articleBody":"We (@janosh) are trying to generate a Sankey diagram but for some reason the explicit coordinates are not fully respected. The \"right_a\" node has a coordinate of `(0.9, 0.05)` (top right), but for some reason shows at bottom left.\n\nplotly 6.3.1, macos 26.0.1\n\n```python\nimport plotly.graph_objects as go\n\n\nlabels = [\"left_a\", \"left_b\", \"left_c\", \"left_d\", \"left_e\", \"left_f\", \"left_g\", \"left_h\", \"left_i\", \"left_j\", \"left_k\", \"left_l\", \"left_m\",\n    \"left_n\", \"left_o\", \"left_p\", \"left_q\", \"left_r\",\n    \"right_a\", \"right_b\", \"right_c\", \"right_d\", \"right_e\", \"right_f\", \"right_g\", \"right_h\", \"right_i\", \"right_j\", \"right_k\", \"right_l\"]\n\nnode_pos = {\n    \"left_a\": (0.1, 0.1), \"left_b\": (0.1, 0.14), \"left_c\": (0.1, 0.18), \"left_d\": (0.1, 0.23),\n    \"left_e\": (0.1, 0.27), \"left_f\": (0.1, 0.31), \"left_g\": (0.1, 0.35),\n    \"left_h\": (0.1, 0.40), \"left_i\": (0.1, 0.44), \"left_j\": (0.1, 0.48),\n    \"left_k\": (0.1, 0.52), \"left_l\": (0.1, 0.56), \"left_m\": (0.1, 0.61),\n    \"left_n\": (0.1, 0.65), \"left_o\": (0.1, 0.69), \"left_p\": (0.1, 0.73),\n    \"left_q\": (0.1, 0.77), \"left_r\": (0.1, 0.82),\n    \"right_a\": (0.9, 0.05),\n    \"right_b\": (0.9, 0.15), \"right_c\": (0.9, 0.25), \"right_d\": (0.9, 0.35), \"right_e\": (0.9, 0.45), \"right_f\": (0.9, 0.55), \"right_g\": (0.9, 0.65),\n    \"right_h\": (0.9, 0.75), \"right_i\": (0.9, 0.85), \"right_j\": (0.9, 0.93), \"right_k\": (0.9, 0.97), \"right_l\": (0.9, 0.99)}\n\nsources = [0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10,\n    10, 10, 11, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 18, 18, 18, 19, 19, 19, 19, ]\n\ntargets = [23, 21, 20, 26, 30, 20, 24, 22, 21, 20, 20, 25, 29, 22, 22, 29, 20, 20, 22, 25, 24, 29, 20, 22, 29, 21, 21, 20, 24, 30, 22,\n    20, 20, 21, 25, 22, 30, 28, 24, 29, 20, 21, 24, 20, 20, 22, 20, 23, 21, 24, 31, 25, 21, 22, 20, 23, 30, 27, 26, 24, 21, 20, 22,\n    23, 30, 25, 20, 21, 22, 20, 21, 25, 20, 22, 21, 24, ]\nvalues = [1 for _ in targets]\nassert len(sources) == len(targets) == len(values)\n\nx_positions: list[float] = [node_pos[lbl][0] for lbl in labels]\ny_positions: list[float] = [node_pos[lbl][1] for lbl in labels]\n\nfig = go.Figure(\n    go.Sankey(\n        arrangement=\"fixed\",\n        node=dict(\n            label=labels,\n            x=x_positions,\n            y=y_positions,\n        ),\n        link=dict(\n            source=sources,\n            target=targets,\n            value=values,\n        ),\n    )\n)\n\n# fig.show()\n\nfig.write_image(\"debug.svg\", format=\"svg\")\n```\n\n\n![Image](https://github.com/user-attachments/assets/d1a1061d-1482-4c31-9737-89d7d1c1758c)\n\n\n\n","author":{"url":"https://github.com/DanielYang59","@type":"Person","name":"DanielYang59"},"datePublished":"2025-10-25T16:19:22Z","url":"https://github.com/plotly/plotly.js/issues/7758"}

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:b6c3cfa7-2778-f9fd-3813-3117f2836a6d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA64A:1087D4:27BC15B:351F8EF:6B01B6B7
html-safe-nonce618255902a6444a026843dd1747049e753c78fc22a1274d3c4f2a59897e27557
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjRBOjEwODdENDoyN0JDMTVCOjM1MUY4RUY6NkIwMUI2QjciLCJ2aXNpdG9yX2lkIjoiNTg4NDQyODMwMzQwOTk4NTIwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfd2fd40e77e6d30d5efcf6be004255199f4a90d1f614fbdf7de57f0c6bdf8862
hovercard-subject-tagissue:4284141996
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/7758/issue_layout
twitter:imagehttps://opengraph.githubassets.com/42f9927a57847bd0c1acaf8c15ae2bb66003306e038e35e5c50a6e12c290a4af/plotly/plotly.js/issues/7758
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/42f9927a57847bd0c1acaf8c15ae2bb66003306e038e35e5c50a6e12c290a4af/plotly/plotly.js/issues/7758
og:image:altWe (@janosh) are trying to generate a Sankey diagram but for some reason the explicit coordinates are not fully respected. The "right_a" node has a coordinate of (0.9, 0.05) (top right), but for so...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDanielYang59
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/7758#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F7758
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%2F7758
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/7758
Reloadhttps://github.com/plotly/plotly.js/issues/7758
Reloadhttps://github.com/plotly/plotly.js/issues/7758
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/7758
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/7758
#7826https://github.com/plotly/plotly.js/pull/7826
plotly/plotly.py#5548https://github.com/plotly/plotly.py/pull/5548
Explicit node coordinates (x/y positions) not fully respected in Sankey diagramhttps://github.com/plotly/plotly.js/issues/7758#top
#7826https://github.com/plotly/plotly.js/pull/7826
plotly/plotly.py#5548https://github.com/plotly/plotly.py/pull/5548
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
good first issuesuitable for newcomershttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
https://github.com/DanielYang59
DanielYang59https://github.com/DanielYang59
on Oct 25, 2025https://github.com/plotly/plotly.js/issues/7758#issue-4284141996
@janoshhttps://github.com/janosh
https://private-user-images.githubusercontent.com/80093591/505650399-d1a1061d-1482-4c31-9737-89d7d1c1758c.svg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNzQ3MjMsIm5iZiI6MTc5NTI3NDQyMywicGF0aCI6Ii84MDA5MzU5MS81MDU2NTAzOTktZDFhMTA2MWQtMTQ4Mi00YzMxLTk3MzctODlkN2QxYzE3NThjLnN2Zz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDE1MjAyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiODQ5ZjFhYWMwMjM3NDA0YjliMmQzOTJkZmY2NDk2YWQ0NmI2Y2NhYzNiMzM2NmJiMTcxMTY0MDVjMDIxM2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnN2ZyUyQnhtbCJ9.RrcVZhj72Oe01YwqETUnL3YU2mm02iQbEU0mozdxLjE
DanielYang59https://github.com/DanielYang59
on Oct 25, 2025https://github.com/plotly/plotly.js/issues/7758#event-24616594848
gvwilsonhttps://github.com/gvwilson
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
on Oct 28, 2025https://github.com/plotly/plotly.js/issues/7758#event-24616594881
https://github.com/FredericoMendes10
FredericoMendes10https://github.com/FredericoMendes10
on Mar 16, 2026https://github.com/plotly/plotly.js/issues/7758#issuecomment-4269848744
FredericoMendes10https://github.com/FredericoMendes10
on Mar 18, 2026https://github.com/plotly/plotly.js/issues/7758#event-24616594991
plotly#5381https://github.com/FredericoMendes10/plotly.py/commit/9f34694f53fdce0fc07fe0dc8b8221a976eb3a1b
9f34694https://github.com/FredericoMendes10/plotly.py/commit/9f34694f53fdce0fc07fe0dc8b8221a976eb3a1b
Fix #5381: right_a node ignores assigned coordinates when rendering g…https://github.com/FredericoMendes10/plotly.py/commit/70f89c839290ee73b308d87925c0f87b954550f5
70f89c8https://github.com/FredericoMendes10/plotly.py/commit/70f89c839290ee73b308d87925c0f87b954550f5
Fix #5381: right_a node ignores assigned coordinates when rendering g…https://github.com/FredericoMendes10/plotly.py/commit/cf6828e97a2929cbd593a94c7a57fb6d0c2ee4b5
cf6828ehttps://github.com/FredericoMendes10/plotly.py/commit/cf6828e97a2929cbd593a94c7a57fb6d0c2ee4b5
Fix #5381: right_a node ignores assigned coordinates when rendering g…https://github.com/FredericoMendes10/plotly.py/commit/09f965aadc6df499ff7d215265c888ea73162af8
09f965ahttps://github.com/FredericoMendes10/plotly.py/commit/09f965aadc6df499ff7d215265c888ea73162af8
Fix #5381: right_a node ignores assigned coordinateshttps://github.com/FredericoMendes10/plotly.py/commit/244e9cae1e73f2b99651d7dbae6ed8ddb486a0d1
244e9cahttps://github.com/FredericoMendes10/plotly.py/commit/244e9cae1e73f2b99651d7dbae6ed8ddb486a0d1
Fix #5381: right_a ignores assigned coordinates when renderinghttps://github.com/FredericoMendes10/plotly.py/commit/5d60b940608c79eea03647a9d316e692363a4d0f
5d60b94https://github.com/FredericoMendes10/plotly.py/commit/5d60b940608c79eea03647a9d316e692363a4d0f
Fix plotly#5381: wrong x/y positions in Sankey with isolated nodeshttps://github.com/FredericoMendes10/plotly.py/commit/8948a54407e60ff8c425633665a4b928472871f5
8948a54https://github.com/FredericoMendes10/plotly.py/commit/8948a54407e60ff8c425633665a4b928472871f5
Fix plotly#5381: wrong x/y positions in Sankey with isolated nodeshttps://github.com/FredericoMendes10/plotly.py/commit/534c33fe36db97abbc9515afdc19d99c5409c44d
534c33fhttps://github.com/FredericoMendes10/plotly.py/commit/534c33fe36db97abbc9515afdc19d99c5409c44d
https://github.com/FredericoMendes10
FredericoMendes10https://github.com/FredericoMendes10
on Apr 17, 2026https://github.com/plotly/plotly.js/issues/7758#issuecomment-4269848784
plotly/plotly.py#5548https://github.com/plotly/plotly.py/pull/5548
https://github.com/emilykl
emilyklhttps://github.com/emilykl
on Apr 17, 2026https://github.com/plotly/plotly.js/issues/7758#issuecomment-4269848818
@FredericoMendes10https://github.com/FredericoMendes10
emilyklhttps://github.com/emilykl
plotly/plotly.pyhttps://github.com/plotly/plotly.py
on Apr 17, 2026https://github.com/plotly/plotly.js/issues/7758#event-24616596493
camdecosterhttps://github.com/camdecoster
good first issuesuitable for newcomershttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Apr 17, 2026https://github.com/plotly/plotly.js/issues/7758#event-24617108113
camdecosterhttps://github.com/camdecoster
completedhttps://github.com/plotly/plotly.js/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7826https://github.com/plotly/plotly.js/pull/7826
on Oct 27, 2026https://github.com/plotly/plotly.js/issues/7758#event-34417372260
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/7758
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/7758
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
good first issuesuitable for newcomershttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%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.