Variable: treemapAttributes
ts
const treemapAttributes: ObjectNode<{
branchvalues: Attr<"remainder" | "total", {
description: "How `values` of branches are read: `remainder` adds each node's value to its descendants' (a branch is bigger than its children), `total` takes it as the branch's total, which must not be less than its children's sum (the trace is not drawn otherwise).";
dflt: "remainder";
editType: "calc";
values: readonly ["remainder", "total"];
}>;
count: Attr<
| "branches"
| "leaves"
| `branches+${string}`
| `leaves+${string}`, {
description: "Without `values`: what a node counts to size it — the leaves below it, its branches, or both.";
dflt: "leaves";
editType: "calc";
flags: readonly ["branches", "leaves"];
}>;
hoverinfo: Attr<
| "none"
| "text"
| "value"
| "all"
| "label"
| "current path"
| "percent root"
| "percent entry"
| "percent parent"
| `text+${string}`
| `value+${string}`
| `label+${string}`
| `current path+${string}`
| `percent root+${string}`
| `percent entry+${string}`
| `percent parent+${string}`
| "name"
| "skip"
| `name+${string}`
| readonly (
| "none"
| "text"
| "value"
| "all"
| "label"
| "current path"
| "percent root"
| "percent entry"
| "percent parent"
| `text+${string}`
| `value+${string}`
| `label+${string}`
| `current path+${string}`
| `percent root+${string}`
| `percent entry+${string}`
| `percent parent+${string}`
| "name"
| "skip"
| `name+${string}`)[], {
arrayOk: true;
description: "Which fields hover labels show, in a fixed order (percentages read `'25% of Eve'`); `'skip'` also turns hover events off for this trace.";
dflt: "label+text+value+name";
editType: "none";
extras: readonly ["all", "none", "skip"];
flags: readonly ["label", "text", "value", "name", "current path", "percent root", "percent entry", "percent parent"];
}>;
insidetextfont: ObjectNode<{
color: Attr<string | readonly string[], {
arrayOk: true;
description: "Text color, or one per node.";
editType: "plot";
}>;
family: Attr<string, {
description: "CSS font-family list.";
editType: "plot";
noBlank: true;
strict: true;
}>;
size: Attr<
| number
| TypedArray
| readonly number[], {
arrayOk: true;
description: "Font size in CSS px, or one per node.";
editType: "plot";
min: 1;
}>;
style: Attr<"normal" | "italic", {
description: "Font style.";
editType: "plot";
values: readonly ["normal", "italic"];
}>;
weight: Attr<number | "normal" | "bold", {
description: "Font weight: a CSS numeric weight (1–1000), `normal` or `bold`.";
editType: "plot";
extras: readonly ["normal", "bold"];
max: 1000;
min: 1;
}>;
}>;
labels: AttrSpec<DataArray, DataArray | undefined>;
level: AttrSpec<unknown, unknown>;
marker: ObjectNode<{
autocolorscale: AttrSpec<boolean, boolean | undefined>;
cauto: AttrSpec<boolean, boolean | undefined>;
cmax: AttrSpec<number, number | undefined>;
cmid: AttrSpec<number, number | undefined>;
cmin: AttrSpec<number, number | undefined>;
coloraxis: AttrSpec<string, string | undefined>;
colorbar: ObjectNode<{
bgcolor: Attr<string, {
description: "Background of the box.";
dflt: "rgba(0,0,0,0)";
}>;
bordercolor: Attr<string, {
description: "Border color of the colorbar box.";
dflt: "#444";
}>;
borderwidth: Attr<number, {
description: "Border width of the box, px.";
dflt: 0;
min: 0;
}>;
dtick: AttrSpec<unknown, unknown>;
exponentformat: Attr<"none" | "e" | "E" | "power" | "SI" | "B", {
description: "How large and small numbers are written: `none` (1000000), `e` (1e+6), `E` (1E+6), `power` (1×10⁶), `SI` (1M), `B` (like SI but 1B for 10⁹).";
dflt: "B";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
values: readonly ["none", "e", "E", "power", "SI", "B"];
}>;
len: Attr<number, {
description: "Length of the colorbar along its axis, padding included (`ypad` / `xpad`).";
dflt: 1;
min: 0;
}>;
lenmode: Attr<"fraction" | "pixels", {
description: "Unit of `len`: px, or a fraction of the plot height (`v`) / width (`h`).";
dflt: "fraction";
values: readonly ["fraction", "pixels"];
}>;
minexponent: Attr<number, {
description: "Smallest decimal exponent written in exponent form (`SI`/`B` and exponent formats); smaller magnitudes are written out in full.";
dflt: 3;
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
min: 0;
}>;
nticks: Attr<number, {
description: "Maximum number of ticks for `tickmode: auto` (the actual number may be lower so steps stay round). 0 picks it from the axis length.";
dflt: 0;
editType: "ticks";
min: 0;
}>;
orientation: Attr<"h" | "v", {
description: "Vertical bar (`v`, beside the plot) or horizontal bar (`h`, above or below).";
dflt: "v";
values: readonly ["h", "v"];
}>;
outlinecolor: Attr<string, {
description: "Color of the outline around the bar.";
dflt: "#444";
}>;
outlinewidth: Attr<number, {
description: "Outline width, px.";
dflt: 1;
min: 0;
}>;
separatethousands: Attr<boolean, {
description: "Always separate thousands (1,000). By default only numbers with 5 or more integer digits are separated.";
dflt: false;
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
}>;
showexponent: Attr<"none" | "all" | "first" | "last", {
description: "Which tick labels show the exponent.";
dflt: "all";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
values: readonly ["all", "first", "last", "none"];
}>;
showticklabels: Attr<boolean, {
description: "Show tick labels.";
dflt: true;
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
}>;
showtickprefix: Attr<"none" | "all" | "first" | "last", {
description: "Which tick labels get `tickprefix`.";
dflt: "all";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
values: readonly ["all", "first", "last", "none"];
}>;
showticksuffix: Attr<"none" | "all" | "first" | "last", {
description: "Which tick labels get `ticksuffix`.";
dflt: "all";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
values: readonly ["all", "first", "last", "none"];
}>;
thickness: Attr<number, {
description: "Thickness of the color bar.";
dflt: 30;
min: 0;
}>;
thicknessmode: Attr<"fraction" | "pixels", {
description: "Unit of `thickness`: px, or a fraction of the plot width (`v`) / height (`h`).";
dflt: "pixels";
values: readonly ["fraction", "pixels"];
}>;
tick0: AttrSpec<unknown, unknown>;
tickangle: Attr<number | "auto", {
description: "Tick-label rotation in degrees. `auto` rotates x-axis labels by the first `autotickangles` entry that avoids overlap.";
dflt: "auto";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
extras: readonly ["auto"];
}>;
tickcolor: Attr<string, {
description: "Tick color. Defaults to `color`.";
editType: "ticks";
}>;
tickfont: ObjectNode<{
color: Attr<string, {
description: "Text color.";
editType: "style";
}>;
family: Attr<string, {
description: "CSS font-family list. The renderer uses the first family it can load and falls back through the list.";
noBlank: true;
strict: true;
}>;
lineposition: Attr<
| "none"
| "under"
| "over"
| "through"
| `under+${(...)}`
| `over+${(...)}`
| `through+${(...)}`, {
description: "Text decoration: `under`, `over` and/or `through` joined with `+` (e.g. `under+over`), or `none`.";
extras: readonly [...];
flags: readonly [..., ..., ...];
}>;
shadow: Attr<string, {
description: "CSS `text-shadow` behind the text (`2px 2px 3px black`; only the first shadow is drawn), `none`, or `auto` for a thin halo in the contrast color of the text.";
}>;
size: Attr<number, {
description: "Font size in CSS pixels.";
min: 1;
}>;
style: Attr<"normal" | "italic", {
description: "Font style.";
values: readonly [..., ...];
}>;
textcase: Attr<"normal" | "word caps" | "upper" | "lower", {
description: "Letter case transform: `upper`, `lower`, `word caps` (first letter of each word), or `normal`.";
values: readonly [..., ..., ..., ...];
}>;
variant: Attr<
| "normal"
| "small-caps"
| "all-small-caps"
| "all-petite-caps"
| "petite-caps"
| "unicase", {
description: "Capitals variant (CSS `font-variant-caps`). The SDF text renderer approximates small and petite caps with uppercase letters at a reduced size.";
values: readonly [..., ..., ..., ..., ..., ...];
}>;
weight: Attr<number | "normal" | "bold", {
description: "Font weight: a CSS numeric weight (1–1000), `normal` or `bold`.";
extras: readonly [..., ...];
max: 1000;
min: 1;
}>;
}>;
tickformat: Attr<string, {
description: "Tick-label format: a d3-format specifier for numbers (`.2f`, `~s`, `$,`) or a d3-time-format specifier for dates (`%b %Y`), plus `%{n}f` for `n` digits of fractional seconds and `%h` for the half year. Empty picks a format automatically.";
dflt: "";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
}>;
ticklabeloverflow: Attr<"allow" | "hide past div" | "hide past domain", {
description: "Hide labels past the figure or past the bar. Defaults to `hide past domain` for inside labels, else `hide past div`.";
values: readonly ["allow", "hide past div", "hide past domain"];
}>;
ticklabelposition: Attr<
| "outside"
| "inside"
| "outside top"
| "inside top"
| "outside left"
| "inside left"
| "outside right"
| "inside right"
| "outside bottom"
| "inside bottom", {
description: "Tick labels outside the bar (away from it) or inside (over it); `top`/`bottom` (`v`) or `left`/`right` (`h`) move them beside their tick.";
dflt: "outside";
values: readonly ["outside", "inside", "outside top", "inside top", "outside bottom", "inside bottom", "outside left", "inside left", "outside right", "inside right"];
}>;
ticklabelstep: Attr<number, {
description: "Label every n-th tick only (`tickmode` `auto` and `linear`).";
dflt: 1;
editType: "ticks";
min: 1;
}>;
ticklen: Attr<number, {
description: "Tick length in px.";
dflt: 5;
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
min: 0;
}>;
tickmode: Attr<"auto" | "linear" | "array" | "sync", {
description: "`auto` picks up to `nticks` round ticks; `linear` places ticks from `tick0` every `dtick`; `array` uses `tickvals`/`ticktext`; `sync` aligns with the overlaid axis (reserved; behaves as `auto`). Defaults to `array` when `tickvals` is set, `linear` when `dtick` is set, else `auto`.";
editType: "ticks";
values: readonly ["auto", "linear", "array", "sync"];
}>;
tickprefix: Attr<string, {
description: "Text before each tick label.";
dflt: "";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
}>;
ticks: Attr<"" | "outside" | "inside", {
description: "Draw tick marks outside or inside the plot area, or not at all (`''`).";
dflt: "";
editType: EditType;
values: readonly ["outside", "inside", ""];
}>;
ticksuffix: Attr<string, {
description: "Text after each tick label.";
dflt: "";
editType: readonly (
| "calc"
| "calcIfAutorange"
| "crossTraceCalc"
| "layout"
| "ticks"
| "plot"
| "style"
| "colorbars"
| "legend"
| "modebar"
| "camera"
| "none")[];
}>;
ticktext: AttrSpec<DataArray, DataArray | undefined>;
tickvals: AttrSpec<DataArray, DataArray | undefined>;
tickwidth: Attr<number, {
description: "Tick width in px.";
dflt: 1;
editType: "ticks";
min: 0;
}>;
title: ObjectNode<{
font: ObjectNode<{
color: Attr<..., ...>;
family: Attr<..., ...>;
lineposition: Attr<..., ...>;
shadow: Attr<..., ...>;
size: Attr<..., ...>;
style: Attr<..., ...>;
textcase: Attr<..., ...>;
variant: Attr<..., ...>;
weight: Attr<..., ...>;
}>;
side: Attr<"right" | "top" | "bottom", {
description: "Where the title goes relative to the bar. Defaults to `top` (`v`) or `right` (`h`).";
values: readonly [..., ..., ...];
}>;
text: Attr<string, {
description: "Colorbar title.";
dflt: "";
}>;
}>;
x: Attr<number, {
description: "Horizontal position (`xref` fraction). Defaults to 1.02 (`v`, paper), 1 (`v`, container) or 0.5 (`h`).";
}>;
xanchor: Attr<"left" | "center" | "right", {
description: "Which side of the colorbar sits at `x`. Defaults to `left` (`v`, paper), `right` (`v`, container) or `center` (`h`).";
values: readonly ["left", "center", "right"];
}>;
xpad: Attr<number, {
description: "Horizontal padding, px.";
dflt: 10;
min: 0;
}>;
xref: Attr<"container" | "paper", {
description: "Reference of `x`: the plot area (`paper`) or the whole figure.";
dflt: "paper";
values: readonly ["container", "paper"];
}>;
y: Attr<number, {
description: "Vertical position (`yref` fraction). Defaults to 0.5 (`v`), 1.02 (`h`, paper) or 1 (`h`, container).";
}>;
yanchor: Attr<"top" | "middle" | "bottom", {
description: "Which side of the colorbar sits at `y`. Defaults to `middle` (`v`), `bottom` (`h`, paper) or `top` (`h`, container).";
values: readonly ["top", "middle", "bottom"];
}>;
ypad: Attr<number, {
description: "Vertical padding, px.";
dflt: 10;
min: 0;
}>;
yref: Attr<"container" | "paper", {
description: "Reference of `y`: the plot area (`paper`) or the whole figure.";
dflt: "paper";
values: readonly ["container", "paper"];
}>;
}>;
colors: AttrSpec<DataArray, DataArray | undefined>;
colorscale: AttrSpec<ColorScale, ColorScale | undefined>;
cornerradius: Attr<number, {
description: "Largest corner radius of tiles, px (limited by the padding on the label side).";
dflt: 0;
editType: "plot";
min: 0;
}>;
depthfade: Attr<boolean | "reversed", {
description: "Fade tile colors towards the background from the leaves up to the headers (`reversed`: from the top down to the leaves). Not with a colorscale; default true unless `marker.colors` is set.";
editType: "style";
values: readonly [true, false, "reversed"];
}>;
line: ObjectNode<{
color: Attr<string | readonly string[], {
arrayOk: true;
description: `Outline color, or one per ${string}. Default: `paper_bgcolor`.`;
editType: "style";
}>;
width: Attr<
| number
| TypedArray
| readonly number[], {
arrayOk: true;
description: `Outline width in CSS px (centered on the edge), or one per ${string}.`;
dflt: number;
editType: "style";
min: 0;
}>;
}>;
pad: ObjectNode<{
b: Attr<number, {
description: `Padding from the ${string}, px.`;
editType: "plot";
min: 0;
}>;
l: Attr<number, {
description: `Padding from the ${string}, px.`;
editType: "plot";
min: 0;
}>;
r: Attr<number, {
description: `Padding from the ${string}, px.`;
editType: "plot";
min: 0;
}>;
t: Attr<number, {
description: `Padding from the ${string}, px.`;
editType: "plot";
min: 0;
}>;
}>;
pattern: ObjectNode<{
bgcolor: Attr<string, {
arrayOk: boolean;
description: `Pattern background. Default: the fill color with `fillmode: 'overlay'`, else transparent${string}.`;
editType: "style";
}>;
fgcolor: Attr<string, {
arrayOk: boolean;
description: `Pattern color. Default: the fill color with `fillmode: 'replace'`, else white or dark grey, whichever contrasts with `bgcolor`${string}.`;
editType: "style";
}>;
fgopacity: Attr<number, {
description: "Opacity of the pattern color. Default 0.5 with `fillmode: 'overlay'`, else 1.";
editType: "style";
max: 1;
min: 0;
}>;
fillmode: Attr<"replace" | "overlay", {
description: "`'replace'`: the pattern in the fill color on `bgcolor` (default transparent) replaces the fill; `'overlay'`: the pattern is drawn over the fill color, in its contrast color at half opacity by default.";
dflt: "replace";
editType: "style";
values: readonly ["replace", "overlay"];
}>;
shape: Attr<"" | "/" | "\" | "x" | "-" | "|" | "+" | ".", {
arrayOk: boolean;
description: `Hatch shape: diagonal (`'/'`, `'\'`, `'x'`), horizontal and vertical (`'-'`, `'|'`, `'+'`) lines or dots (`'.'`); `''` for none${string}.`;
dflt: "";
editType: "style";
values: readonly ["", "/", "\", "x", "-", "|", "+", "."];
}>;
size: Attr<number, {
arrayOk: boolean;
description: `Size of the pattern's tiles in CSS px: the spacing of its lines or dots${string}.`;
dflt: 8;
editType: "style";
min: 0;
}>;
solidity: Attr<number, {
arrayOk: boolean;
description: `Fraction of the area the pattern covers: 0 shows only the background, 1 only the pattern color${string}.`;
dflt: 0.3;
editType: "style";
max: 1;
min: 0;
}>;
}>;
reversescale: AttrSpec<boolean, boolean>;
showscale: AttrSpec<boolean, boolean>;
}>;
maxdepth: Attr<number, {
description: "Levels drawn from the entry down, the entry included; -1 draws them all. Deeper nodes appear when drilling in.";
dflt: -1;
editType: "plot";
}>;
outsidetextfont: ObjectNode<{
color: Attr<string | readonly string[], {
arrayOk: true;
description: "Text color, or one per node.";
editType: "plot";
}>;
family: Attr<string, {
description: "CSS font-family list.";
editType: "plot";
noBlank: true;
strict: true;
}>;
size: Attr<
| number
| TypedArray
| readonly number[], {
arrayOk: true;
description: "Font size in CSS px, or one per node.";
editType: "plot";
min: 1;
}>;
style: Attr<"normal" | "italic", {
description: "Font style.";
editType: "plot";
values: readonly ["normal", "italic"];
}>;
weight: Attr<number | "normal" | "bold", {
description: "Font weight: a CSS numeric weight (1–1000), `normal` or `bold`.";
editType: "plot";
extras: readonly ["normal", "bold"];
max: 1000;
min: 1;
}>;
}>;
parents: AttrSpec<DataArray, DataArray | undefined>;
pathbar: ObjectNode<{
edgeshape: Attr<"/" | "\" | "|" | ">" | "<", {
description: "Shape of the edges between path bar segments.";
dflt: ">";
editType: "plot";
values: readonly [">", "<", "|", "/", "\"];
}>;
side: Attr<"top" | "bottom", {
description: "Side of the chart the path bar is on.";
dflt: "top";
editType: "plot";
values: readonly ["top", "bottom"];
}>;
textfont: ObjectNode<{
color: Attr<string | readonly string[], {
arrayOk: true;
description: "Text color, or one per node.";
editType: "plot";
}>;
family: Attr<string, {
description: "CSS font-family list.";
editType: "plot";
noBlank: true;
strict: true;
}>;
size: Attr<
| number
| TypedArray
| readonly number[], {
arrayOk: true;
description: "Font size in CSS px, or one per node.";
editType: "plot";
min: 1;
}>;
style: Attr<"normal" | "italic", {
description: "Font style.";
editType: "plot";
values: readonly ["normal", "italic"];
}>;
weight: Attr<number | "normal" | "bold", {
description: "Font weight: a CSS numeric weight (1–1000), `normal` or `bold`.";
editType: "plot";
extras: readonly ["normal", "bold"];
max: 1000;
min: 1;
}>;
}>;
thickness: Attr<number, {
description: "Thickness of the path bar in px. Default: `pathbar.textfont.size` plus 3 px on each side.";
editType: "plot";
min: 12;
}>;
visible: Attr<boolean, {
description: "Whether the path bar is drawn: the ancestors of the current root (`level`) as a bar outside the `domain`, one pixel away. Clicking a segment goes up to it.";
dflt: true;
editType: "plot";
}>;
}>;
root: ObjectNode<{
color: Attr<string, {
description: "Color of the root node (transparent by default).";
dflt: "rgba(0,0,0,0)";
editType: "calc";
}>;
}>;
sort: Attr<boolean, {
description: "Order siblings by value, largest first; otherwise in data order.";
dflt: true;
editType: "calc";
}>;
text: AttrSpec<DataArray, DataArray | undefined>;
textfont: ObjectNode<{
color: Attr<string | readonly string[], {
arrayOk: true;
description: "Text color, or one per node.";
editType: "plot";
}>;
family: Attr<string, {
description: "CSS font-family list.";
editType: "plot";
noBlank: true;
strict: true;
}>;
size: Attr<
| number
| TypedArray
| readonly number[], {
arrayOk: true;
description: "Font size in CSS px, or one per node.";
editType: "plot";
min: 1;
}>;
style: Attr<"normal" | "italic", {
description: "Font style.";
editType: "plot";
values: readonly ["normal", "italic"];
}>;
weight: Attr<number | "normal" | "bold", {
description: "Font weight: a CSS numeric weight (1–1000), `normal` or `bold`.";
editType: "plot";
extras: readonly ["normal", "bold"];
max: 1000;
min: 1;
}>;
}>;
textinfo: Attr<
| "none"
| "text"
| "value"
| "label"
| "current path"
| "percent root"
| "percent entry"
| "percent parent"
| `text+${string}`
| `value+${string}`
| `label+${string}`
| `current path+${string}`
| `percent root+${string}`
| `percent entry+${string}`
| `percent parent+${string}`, {
description: "What node labels show, one per line in a fixed order: label, value, current path, the percentages (of the parent, the entry, the root; `'25% of parent'` when several), text. Default `'label'`, `'text+label'` when `text` is an array. Use `texttemplate` for other layouts.";
editType: "plot";
extras: readonly ["none"];
flags: readonly ["label", "text", "value", "current path", "percent root", "percent entry", "percent parent"];
}>;
textposition: Attr<
| "top left"
| "top center"
| "top right"
| "middle left"
| "middle center"
| "middle right"
| "bottom left"
| "bottom center"
| "bottom right", {
description: "Where labels sit in their tiles. Branch labels (headers) sit in the top padding, or the bottom one for the `bottom` positions.";
dflt: "top left";
editType: "plot";
values: readonly ["top left", "top center", "top right", "middle left", "middle center", "middle right", "bottom left", "bottom center", "bottom right"];
}>;
texttemplate: Attr<string | readonly string[], {
arrayOk: true;
description: "Template for node labels, overriding `textinfo`: `%{label}`, `%{value}`, `%{currentPath}`, `%{percentParent}`, `%{parent}`, `%{percentEntry}`, `%{entry}`, `%{percentRoot}`, `%{root}`, `%{text}`, `%{color}`, `%{customdata}`, `%{meta}`, with optional d3 formats (`%{percentRoot:.1%}`).";
dflt: "";
editType: "plot";
}>;
tiling: ObjectNode<{
flip: Attr<"x" | "y" | `x+${string}` | `y+${string}`, {
description: "Mirror the layout along x and / or y.";
dflt: "";
editType: "plot";
flags: readonly ["x", "y"];
}>;
packing: Attr<"slice" | "squarify" | "binary" | "dice" | "slice-dice" | "dice-slice", {
description: "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).";
dflt: "squarify";
editType: "plot";
values: readonly ["squarify", "binary", "dice", "slice", "slice-dice", "dice-slice"];
}>;
pad: Attr<number, {
description: "Gap between sibling tiles, px.";
dflt: 3;
editType: "plot";
min: 0;
}>;
squarifyratio: Attr<number, {
description: "With `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.";
dflt: 1;
editType: "plot";
min: 1;
}>;
}>;
values: AttrSpec<DataArray, DataArray | undefined>;
}>;Experimental
The treemap schema.