I believe treemaps could deserve to be supported natively as a new type instead of having to precompute the rectangles and add them as shapes.
One reason is that using shapes prevents us from directly using a colorscale on another trace attribute (since the shapes' fillcolor attribute only accepts a color value).
It would be nice to have support to R too. Now treemaps are restricted to Python and Matlab.
(Related: https://github.com/plotly/plotly.js/issues/2221)
There are three possible visual forms that are in principle treemap-like, but whose intent and natural input format differ:
parcoords one (see https://www.perceptualedge.com/articles/visual_business_intelligence/are_mosaic_plots_worthwhile.pdf for commentary)Let's focus strictly on number 1 in this case, assuming that this is a trace-with-its-own-domain like sunburst and that it does not have cartesian axes.
Within that, there are a bunch of dimensions to explore, requirements-wise (these may overlap a lot, naturally):
There's lots of d3 prior art here... https://www.d3indepth.com/layouts/
Other implementations:
- Click to zoom in... double-click to zoom out? If there are 'headers' then you could click on the ...
Implementing double-click may not be a good idea noting that on some device e.g. iPad the hover event is triggered by single click and the click event is triggered by double click.
Is it useful to display node's current/full path on hover?
Is it useful to display node's current/full path on hover?
Would be useful to have as an option in hovertemplate yes! By default I would say no.
Most helpful comment
It would be nice to have support to R too. Now treemaps are restricted to Python and Matlab.