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.automargintest coverage, partly done in: 80f4701, more to come in Allow replot during drag interactions #3305Things skipped:
ticktext/tickvalsare not coerced ontype: 'multicategory'axestransformscc @plotly/plotly_js @nicolaskruchten