René's URL Explorer Experiment


Title: Multi-category sorting misbehaves with missing categories · Issue #3723 · plotly/plotly.js · GitHub

Open Graph Title: Multi-category sorting misbehaves with missing categories · Issue #3723 · plotly/plotly.js

X Title: Multi-category sorting misbehaves with missing categories · Issue #3723 · plotly/plotly.js

Description: Originally reported in plotly/plotly.py#1491. There seems to a multi-category sorting bug that wasn't fixed by #3362. CodePen: https://codepen.io/jonmmease/pen/VNeEqq?editors=1010 var fig = { "data": [ { "name": "Fruits", "type": "bar", ...

Open Graph Description: Originally reported in plotly/plotly.py#1491. There seems to a multi-category sorting bug that wasn't fixed by #3362. CodePen: https://codepen.io/jonmmease/pen/VNeEqq?editors=1010 var fig = { "data...

X Description: Originally reported in plotly/plotly.py#1491. There seems to a multi-category sorting bug that wasn't fixed by #3362. CodePen: https://codepen.io/jonmmease/pen/VNeEqq?editors=1010 var fig = { &...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multi-category sorting  misbehaves with missing categories","articleBody":"Originally reported in https://github.com/plotly/plotly.py/issues/1491.\r\n\r\nThere seems to a multi-category sorting bug that wasn't fixed by #3362.\r\n\r\nCodePen: https://codepen.io/jonmmease/pen/VNeEqq?editors=1010\r\n\r\n```javascript\r\nvar fig = {\r\n  \"data\": [\r\n    {\r\n      \"name\": \"Fruits\",\r\n      \"type\": \"bar\",\r\n      \"x\": [\r\n        [\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2018,\r\n          2018,\r\n          2018,\r\n          2018\r\n        ],\r\n        [\r\n          4,\r\n          5,\r\n          6,\r\n          8,\r\n          9,\r\n          10,\r\n          11,\r\n          12,\r\n          1,\r\n          2,\r\n          3,\r\n          4\r\n        ]\r\n      ],\r\n      \"y\": [\r\n        57246.0,\r\n        1587.0,\r\n        63189.0,\r\n        30680.0,\r\n        26071.0,\r\n        117519.0,\r\n        27519.0,\r\n        42643.0,\r\n        8559.0,\r\n        22355.0,\r\n        59363.0,\r\n        62955.0\r\n      ]\r\n    },\r\n    {\r\n      \"name\": \"Price\",\r\n      \"type\": \"scatter\",\r\n      \"x\": [\r\n        [\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2017,\r\n          2018,\r\n          2018,\r\n          2018,\r\n          2018\r\n        ],\r\n        [\r\n          4,\r\n          5,\r\n          6,\r\n          8,\r\n          9,\r\n          10,\r\n          11,\r\n          12,\r\n          1,\r\n          2,\r\n          3,\r\n          4\r\n        ]\r\n      ],\r\n      \"y\": [\r\n        0.22991999,\r\n        0.27284184,\r\n        0.18438336,\r\n        0.24866362,\r\n        0.18280848,\r\n        0.19382398,\r\n        0.17268069,\r\n        0.18802617,\r\n        0.17560463,\r\n        0.13415343,\r\n        0.14773512,\r\n        0.31319196\r\n      ],\r\n      \"yaxis\": \"y2\"\r\n    }\r\n  ],\r\n  \"layout\": {\r\n    \"height\": 600,\r\n    \"showlegend\": true,\r\n    \"yaxis\": {\r\n      \"showgrid\": true,\r\n      \"title\": {\r\n        \"text\": \"Fruits volume\"\r\n      }\r\n    },\r\n    \"yaxis2\": {\r\n      \"anchor\": \"x\",\r\n      \"overlaying\": \"y\",\r\n      \"showgrid\": false,\r\n      \"side\": \"right\",\r\n      \"title\": {\r\n        \"text\": \"Price per unit\"\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nPlotly.newPlot('myDiv', fig, {showSendToCloud: true});\r\n```\r\n![newplot-8](https://user-images.githubusercontent.com/15064365/55547115-9d932b00-569e-11e9-8437-819378533e08.png)\r\n\r\nThe problem is that in the second multi-category (2018), the 4 is sorted before 1, 2, 3 even though they are specified in ascending sorted order.\r\n\r\nAs noted in https://github.com/plotly/plotly.py/issues/1491, this seems to happen for categories that are not present in the first multi-category (2017).\r\n","author":{"url":"https://github.com/jonmmease","@type":"Person","name":"jonmmease"},"datePublished":"2019-04-04T10:00:32Z","url":"https://github.com/plotly/plotly.js/issues/3723"}

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:d4a463f1-79aa-6799-4cf4-0c1f06553f0b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAC0:38EE04:EB7F6B:13804E5:6B01D439
html-safe-noncec07a7c76a2dbfe9154e8f2ae92b3e63e699c2ba2d16b9d87c179aca3c8ffc8a8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUMwOjM4RUUwNDpFQjdGNkI6MTM4MDRFNTo2QjAxRDQzOSIsInZpc2l0b3JfaWQiOiIyMTIyMTAwNjUwNzczOTU5NzM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd622158489d4b382fa5aacb5a6b4aa1802046062bbdb6b45cfb592c6769a5e2c
hovercard-subject-tagissue:429189099
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/3723/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bd432545aac0c12eed9457c33d1d3654b178e464e36def839911f0826c8f72c2/plotly/plotly.js/issues/3723
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd432545aac0c12eed9457c33d1d3654b178e464e36def839911f0826c8f72c2/plotly/plotly.js/issues/3723
og:image:altOriginally reported in plotly/plotly.py#1491. There seems to a multi-category sorting bug that wasn't fixed by #3362. CodePen: https://codepen.io/jonmmease/pen/VNeEqq?editors=1010 var fig = { "data...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejonmmease
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/3723#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.js%2Fissues%2F3723
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%2F3723
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/3723
Reloadhttps://github.com/plotly/plotly.js/issues/3723
Reloadhttps://github.com/plotly/plotly.js/issues/3723
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/3723
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/3723
Multi-category sorting misbehaves with missing categorieshttps://github.com/plotly/plotly.js/issues/3723#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/jonmmease
jonmmeasehttps://github.com/jonmmease
on Apr 4, 2019https://github.com/plotly/plotly.js/issues/3723#issue-429189099
plotly/plotly.py#1491https://github.com/plotly/plotly.py/issues/1491
#3362https://github.com/plotly/plotly.js/pull/3362
https://codepen.io/jonmmease/pen/VNeEqq?editors=1010https://codepen.io/jonmmease/pen/VNeEqq?editors=1010
https://user-images.githubusercontent.com/15064365/55547115-9d932b00-569e-11e9-8437-819378533e08.png
plotly/plotly.py#1491https://github.com/plotly/plotly.py/issues/1491
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Apr 4, 2019https://github.com/plotly/plotly.js/issues/3723#issuecomment-479895345
https://github.com/etpinard
etpinardhttps://github.com/etpinard
on Apr 4, 2019https://github.com/plotly/plotly.js/issues/3723#issuecomment-480004396
https://github.com/plotly/plotly.js/compare/multicategory-sort-questionable-fixhttps://github.com/plotly/plotly.js/compare/multicategory-sort-questionable-fix
https://github.com/alexcjohnson
alexcjohnsonhttps://github.com/alexcjohnson
on Apr 4, 2019https://github.com/plotly/plotly.js/issues/3723#issuecomment-480016965
https://github.com/ThibTrip
ThibTriphttps://github.com/ThibTrip
on Apr 7, 2019https://github.com/plotly/plotly.js/issues/3723#issuecomment-480603354
#3300 (comment)https://github.com/plotly/plotly.js/pull/3300#issuecomment-470855357
etpinardhttps://github.com/etpinard
bugsomething brokenhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22bug%22
on Apr 10, 2019https://github.com/plotly/plotly.js/issues/3723#event-2266010818
https://github.com/emmanuelle
emmanuellehttps://github.com/emmanuelle
on Apr 7, 2020https://github.com/plotly/plotly.js/issues/3723#issuecomment-610357496
https://community.plotly.com/t/multicategory-xaxis-label-arrangement-is-not-proper/37359/3https://community.plotly.com/t/multicategory-xaxis-label-arrangement-is-not-proper/37359/3
https://codepen.io/emmanuelle-plotly/pen/zYGgMjz?editable=truehttps://codepen.io/emmanuelle-plotly/pen/zYGgMjz?editable=true
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 14, 2024https://github.com/plotly/plotly.js/issues/3723#issuecomment-2167863105
@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 14, 2024https://github.com/plotly/plotly.js/issues/3723#event-13159943553
gvwilsonhttps://github.com/gvwilson
on Aug 8, 2024https://github.com/plotly/plotly.js/issues/3723#event-13807222380
gvwilsonhttps://github.com/gvwilson
sev-3annoyance with workaroundhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22sev-3%22
on Aug 8, 2024https://github.com/plotly/plotly.js/issues/3723#event-13807228008
gvwilsonhttps://github.com/gvwilson
on Aug 8, 2024https://github.com/plotly/plotly.js/issues/3723#event-13809766113
gvwilsonhttps://github.com/gvwilson
P3backloghttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22P3%22
sev-3annoyance with workaroundhttps://github.com/plotly/plotly.js/issues?q=state%3Aopen%20label%3A%22sev-3%22
on Aug 8, 2024https://github.com/plotly/plotly.js/issues/3723#event-13809768022
https://github.com/danaut
danauthttps://github.com/danaut
on Aug 1, 2025https://github.com/plotly/plotly.js/issues/3723#issuecomment-3144642515
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Aug 1, 2025https://github.com/plotly/plotly.js/issues/3723#issuecomment-3144904997
@danauthttps://github.com/danaut
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.js/issues/3723
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.js/issues/3723
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.