Interface: TreemapOptions
Defined in: src/mobjects/graphing/Treemap.ts:32
Options for Treemap.
Properties
colorBy?
optionalcolorBy:TreemapColorBy
Defined in: src/mobjects/graphing/Treemap.ts:44
Whether each tile gets a distinct color ('category') or one per depth. Default: 'category'.
colors?
optionalcolors:string|string[]
Defined in: src/mobjects/graphing/Treemap.ts:42
Tile colors. Single color applies to all, array cycles. Default: Manim palette.
data
data:
TreemapNode
Defined in: src/mobjects/graphing/Treemap.ts:34
The root of the value hierarchy.
fillOpacity?
optionalfillOpacity:number
Defined in: src/mobjects/graphing/Treemap.ts:46
Fill opacity of the tiles. Default: 0.85.
height?
optionalheight:number
Defined in: src/mobjects/graphing/Treemap.ts:38
Height of the chart region. Default: 4.5.
labelFontSize?
optionallabelFontSize:number
Defined in: src/mobjects/graphing/Treemap.ts:58
Font size for tile labels. Default: 18.
minLabelSize?
optionalminLabelSize:number
Defined in: src/mobjects/graphing/Treemap.ts:60
Smallest tile side, in scene units, that still gets a label. Default: 0.6.
padding?
optionalpadding:number
Defined in: src/mobjects/graphing/Treemap.ts:40
Inset between a parent tile and its children. Default: 0.06.
showInternalNodes?
optionalshowInternalNodes:boolean
Defined in: src/mobjects/graphing/Treemap.ts:54
Whether to draw a rectangle for internal (non-leaf) nodes. Default: true.
showLabels?
optionalshowLabels:boolean
Defined in: src/mobjects/graphing/Treemap.ts:56
Whether to label leaf tiles that are large enough. Default: true.
showRoot?
optionalshowRoot:boolean
Defined in: src/mobjects/graphing/Treemap.ts:52
Whether to draw the root rectangle. Default: false.
strokeColor?
optionalstrokeColor:string
Defined in: src/mobjects/graphing/Treemap.ts:48
Stroke color between tiles. Default: WHITE.
strokeWidth?
optionalstrokeWidth:number
Defined in: src/mobjects/graphing/Treemap.ts:50
Stroke width between tiles. Default: 1.
width?
optionalwidth:number
Defined in: src/mobjects/graphing/Treemap.ts:36
Width of the chart region. Default: 8.