question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extend `categoryorder` to multicategory axes

See original GitHub issue

Currently we don’t coerce categoryorder and friends for mulitcategory axes. Extending categoryarray and sorting will be a little challenging from an API standpoint.

  • Should we refer to category pairs in categoryarray as 2-item arrays e.g. categoryarray: [['q1', 'A'], ['q2', 'B]]
  • We’ll have to disallow some combinations to ensure that we don’t jump from one parent category to another and back
  • We’ll probably need to sort parent and child categories separately?

Related: https://github.com/plotly/plotly.js/issues/3723

Some context: https://community.plot.ly/t/ordering-on-multi-level-bar-charts/23747

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
kmcentushcommented, Apr 29, 2020

I would love for this to be implemented as well.

3reactions
davepattiecommented, May 24, 2019

controlling the child sort order within the parent would be great +1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multi-categorical Axes : How to order the category?
Therefore, my xaxis is a multicategorical axis, ... I found this discussion: Extend `categoryorder` to multicategory axes · Issue #3908 ...
Read more >
Plotly: styling secondary x axis - python - Stack Overflow
categoryorder Specifies the ordering logic for the case of categorical variables. By default, plotly uses "trace", which specifies the order ...
Read more >
How to create a multi level axis | Exceljet
But what if I want to group the cities in by region? Well, if I visit Select Data, I can click Edit under...
Read more >
8.4 Changing the Order of Items on a Categorical Axis
8.4.4 See Also. To reorder factor levels based on data values from another column, see Recipe 15.9.
Read more >
How to Create Multi-Category Chart in Excel
Learn how to create a multi-category chart in Excel in this tutorial. ... Format Axis task pane, scroll down and click on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found