-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multicategory axis type #3300
Multicategory axis type #3300
Conversation
- ax._mainLinePosition appears to be always defined for cartesian axes
- so that it can still be relevant for multi-category axes.
- no need to export it on Axes - return Lib.syncOrAsync result
- this will allow us to use ax._boundingBox for multicategory axes
... similar to ax._lw for ax.linewidth.
- compute and use tick-label height to position secondary labels - disallow 30deg tick label rotation when fixing overlaps - use ax._boundingBox to position axis title on multicategory axes.
- make it return z.length if z is 1D - make it return 0 when not an array
- mea culpa: no need to keep track of max-row-length for multicategory coordinate array, min-row-length suffices.
- make sure calc'ed arrays are sorted properly - handle null and undefined item correctly - handle non-2d-array input correctly - test 2d-array input on non-multicategory axes
- improve secondary-label to axis title padding - add horizontal violin mock
- lock down annotations in same mock.
this means Axes.getSubplots and Axes.findSubplotsWithAxis are essentially unused internally, but we have some outside callers using getSubplots
💃 love it. |
Just to make 100% sure: |
That's correct. Dividers are only available for |
Hello, do you know when 'multicategory' type will displays more than two axis ? Is there a work in progress about it ? |
Hi is there support for something similar to bargap and bargroupgap with multicategory axes? The goal would be to have a different gaps between bars of an outer category and bars of an inner category. Thanks ! Any other way to achieve this would be helpful :) |
(attempts to) resolves #2799 by adding a ✨ new ✨ axis type:
'multicategory'
- which displays two (maybe more later) axis labels levels along with "dividers" in-between each category group.N.B. This branch is up-to-date with the latest master that includes
uirevision
.Things to TODO:
type: 'multicategory'
on y-axeshistogram*
traces[ ] add some way to configure ticks/dividers per category level- leave for lateraxis.automargin
test coverage, partly done in: 80f4701, more to come in Allow replot during drag interactions #3305Things skipped:
ticktext
/tickvals
are not coerced ontype: 'multicategory'
axestransforms
cc @plotly/plotly_js @nicolaskruchten