René's URL Explorer Experiment


Title: Sorting issues with multicategories · Issue #1491 · plotly/plotly.py · GitHub

Open Graph Title: Sorting issues with multicategories · Issue #1491 · plotly/plotly.py

X Title: Sorting issues with multicategories · Issue #1491 · plotly/plotly.py

Description: Hello, as you can see here my chart is not correctly sorted by the x-axis and the line goes back which is really not an expected behavior. I found out that a workaround is to add "missing" x labels (as in missing months in this case, see...

Open Graph Description: Hello, as you can see here my chart is not correctly sorted by the x-axis and the line goes back which is really not an expected behavior. I found out that a workaround is to add "missing" x labels...

X Description: Hello, as you can see here my chart is not correctly sorted by the x-axis and the line goes back which is really not an expected behavior. I found out that a workaround is to add "missing"...

Opengraph URL: https://github.com/plotly/plotly.py/issues/1491

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sorting issues with multicategories","articleBody":"Hello,\r\n\r\nas you can see here my chart is not correctly sorted by the x-axis and the line goes back which is really not an expected behavior.\r\n\r\n![troubleshoot_axis_sort_multicat](https://user-images.githubusercontent.com/40694343/55495687-c6370880-563d-11e9-8940-065e1019dabc.png)\r\n\r\nI found out that a workaround is to add \"missing\" x labels (as in missing months in this case, see below) with None in y values  but in my case it is very impractical.\r\n\r\n![troubleshoot_axis_sort_multicat_workaround](https://user-images.githubusercontent.com/40694343/55496346-1fec0280-563f-11e9-86f1-d635e0a3b505.png)\r\n\r\nFirst of all it will make the graph overly large (spans over 5 years in some cases but I do not have data for all months, far from that). Also I'm using this graph with dash and the data gets transformed a lot which makes adding missing labels quite tedious.\r\n\r\nEDIT:\r\n\r\nAnother option you might think is to just use the month names in this case. Turns out that does not work either:\r\n\r\n![multicategories_sorting_issues_update](https://user-images.githubusercontent.com/40694343/55509151-c219e380-565b-11e9-8f40-c81b38065621.png)\r\n\r\n\r\nThanks in advance for checking out the issue,\r\n\r\nThibault\r\n\r\n# Reproducible example with version 3.7.1 in offline mode\r\n\r\n```\r\nimport plotly.graph_objs as go\r\n\r\n\r\n\r\nx_axis = [[2017, 2017, 2017, 2017, 2017, 2017, 2017, 2017, 2018, 2018,2018, 2018], \r\n             [4, 5, 6, 8, 9, 10, 11, 12, 1, 2, 3, 4]]\r\ny1 = [ 57246.,   1587.,  63189.,  30680.,  26071., 117519.,  27519.,  42643., 8559.,  22355.,  59363.,  62955.]\r\ny2 = [0.22991999, 0.27284184, 0.18438336, 0.24866362, 0.18280848, 0.19382398, 0.17268069, 0.18802617, 0.17560463, 0.13415343, 0.14773512, 0.31319196]\r\n\r\n\r\n# all arrays must have the same length\r\nassert len(x_axis[0]) == len(x_axis[1]) == len(y1) == len(y2)\r\n\r\n\r\ntest_figure = go.Figure({\r\n    'data': [{'name': 'Fruits',\r\n              'type': 'bar',\r\n              'x': x_axis,\r\n              'y': y1},\r\n             \r\n             {'name': 'Price',\r\n              'type': 'scatter',\r\n              'x': x_axis,\r\n              'y': y2,\r\n              'yaxis': 'y2'}],\r\n    \r\n    \r\n    'layout': {'height': 600,\r\n               'showlegend': True,\r\n               'yaxis': {'showgrid': True, 'title': {'text': 'Fruits volume'}},\r\n               'yaxis2': {'anchor': 'x',\r\n                          'overlaying': 'y',\r\n                          'showgrid': False,\r\n                          'side': 'right',\r\n                          'title': {'text': 'Price per unit'}}}\r\n})\r\n\r\n\r\nfrom plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot\r\niplot(test_figure)\r\n```\r\n\r\n# Related issue on plotly.js\r\n\r\nThe issue I'm describing here should have been fixed in version 1.43.1 of plotly.js.\r\nSee https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1431----2018-12-21\r\n(issue 3362)\r\n\r\nEven though plotly.py uses a superior version as you can see there is still an issue.","author":{"url":"https://github.com/ThibTrip","@type":"Person","name":"ThibTrip"},"datePublished":"2019-04-03T16:38:13Z","url":"https://github.com/plotly/plotly.py/issues/1491"}

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:50db077c-e5c1-98a0-cfb9-383f9956f57e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE0A8:27E5CD:354C334:442E930:6B01DA7C
html-safe-noncefaf33e4f69bef12a02fb605ebb6c1b00ce5751437dd34db2673a2be4c6e96f4a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEE4OjI3RTVDRDozNTRDMzM0OjQ0MkU5MzA6NkIwMURBN0MiLCJ2aXNpdG9yX2lkIjoiODE4NzU3MTg5MTMxODQxMzk0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7a7d88279268395c0f2f54f9565c43ebd13563d67c2122def5eb61f6da35afe2
hovercard-subject-tagissue:428867044
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.py/1491/issue_layout
twitter:imagehttps://opengraph.githubassets.com/15f61a570180f938253259d44815bd15b43a34ea21a32c9385b4a4238af280b3/plotly/plotly.py/issues/1491
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/15f61a570180f938253259d44815bd15b43a34ea21a32c9385b4a4238af280b3/plotly/plotly.py/issues/1491
og:image:altHello, as you can see here my chart is not correctly sorted by the x-axis and the line goes back which is really not an expected behavior. I found out that a workaround is to add "missing" x labels...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameThibTrip
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579099
octolytics-dimension-repository_nwoplotly/plotly.py
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579099
octolytics-dimension-repository_network_root_nwoplotly/plotly.py
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.py/issues/1491#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F1491
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.py%2Fissues%2F1491
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.py
Reloadhttps://github.com/plotly/plotly.py/issues/1491
Reloadhttps://github.com/plotly/plotly.py/issues/1491
Reloadhttps://github.com/plotly/plotly.py/issues/1491
plotlyhttps://github.com/plotly
plotly.pyhttps://github.com/plotly/plotly.py
Codehttps://github.com/plotly/plotly.py
Issues650 (650)https://github.com/plotly/plotly.py/issues
Pull requests83 (83)https://github.com/plotly/plotly.py/pulls
Actionshttps://github.com/plotly/plotly.py/actions
Security and qualityhttps://github.com/plotly/plotly.py/security
Insightshttps://github.com/plotly/plotly.py/insights
https://github.com/plotly/plotly.py
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1491
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1491
Sorting issues with multicategorieshttps://github.com/plotly/plotly.py/issues/1491#top
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/ThibTrip
ThibTriphttps://github.com/ThibTrip
on Apr 3, 2019https://github.com/plotly/plotly.py/issues/1491#issue-428867044
https://user-images.githubusercontent.com/40694343/55495687-c6370880-563d-11e9-8940-065e1019dabc.png
https://user-images.githubusercontent.com/40694343/55496346-1fec0280-563f-11e9-86f1-d635e0a3b505.png
https://user-images.githubusercontent.com/40694343/55509151-c219e380-565b-11e9-8f40-c81b38065621.png
https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1431----2018-12-21https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1431----2018-12-21
jonmmeasehttps://github.com/jonmmease
bugsomething brokenhttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22bug%22
plotly.jshttps://github.com/plotly/plotly.py/issues?q=state%3Aopen%20label%3A%22plotly.js%22
on Apr 4, 2019https://github.com/plotly/plotly.py/issues/1491#event-2252402169
https://github.com/jonmmease
jonmmeasehttps://github.com/jonmmease
on Apr 4, 2019https://github.com/plotly/plotly.py/issues/1491#issuecomment-479833715
@ThibTriphttps://github.com/ThibTrip
plotly/plotly.js#3723https://github.com/plotly/plotly.js/issues/3723
https://github.com/IceflowRE
IceflowREhttps://github.com/IceflowRE
on Sep 24, 2020https://github.com/plotly/plotly.py/issues/1491#issuecomment-698569112
https://camo.githubusercontent.com/65861621463bbbe933621b0457b2be92a6fe732ea06baaf06a5f38d9b9972a44/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f6d4a3975762e706e67
https://camo.githubusercontent.com/e4bbd95de962dc0a90b34dd23b0931a03caab1dc95a8989e846554a234add381/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f774b4541372e706e67
https://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
on Jun 13, 2024https://github.com/plotly/plotly.py/issues/1491#issuecomment-2166619052
@gvwilsonhttps://github.com/gvwilson
gvwilsonhttps://github.com/gvwilson
completedhttps://github.com/plotly/plotly.py/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 13, 2024https://github.com/plotly/plotly.py/issues/1491#event-13151877935
https://github.com/IceflowRE
IceflowREhttps://github.com/IceflowRE
on Jun 14, 2024https://github.com/plotly/plotly.py/issues/1491#issuecomment-2167437615
@gvwilsonhttps://github.com/gvwilson
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/1491
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/1491
bugsomething brokenhttps://github.com/plotly/plotly.py/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.