Skip to content

Interface: TreemapTraceTiling ​

How tiles are laid out.

Properties ​

PropertyTypeDefault valueDescription
flip?"x" | "y" | "x+y" | "y+x"""Mirror the layout along x and / or y.
packing?"slice" | "squarify" | "binary" | "dice" | "slice-dice" | "dice-slice""squarify"How children share their parent's area (d3-hierarchy's tilings): squarify (tiles close to squarifyratio), binary (balanced splits), dice (side by side), slice (stacked), slice-dice / dice-slice (alternating by level).
pad?number3Gap between sibling tiles, px. Minimum: 0
squarifyratio?number1With squarify: the aspect ratio tiles aim for, either way (2 gives tiles about 2:1 or 1:2). Plotly uses 1 (squares) where d3 uses the golden ratio. Minimum: 1

Released under the MIT License.