Treemap is used to visualize hierarchical data using nested rectangles. Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/recharts/recharts/llms.txt
Use this file to discover all available pages before exploring further.
Props
The source data. Each element should be an object. If the
children property is present on an element, it will be treated as a nested treemap.The width of chart container. Can be a number or a percent string like “100%”.
The height of chart container. Can be a number or a percent string like “100%”.
Decides how to extract value from the data. Can be a string key name, number index, or function that receives the data object and returns the value.
Name represents each sector in the tooltip. Can be a string key name, number index, or function that receives the data object and returns the name.
The treemap will try to keep every single rectangle’s aspect ratio near the aspectRatio given.
The type of treemap to render.
flat: Renders the entire treemap at once, with all leaf nodes visible.nest: Renders an interactive, nested treemap. Clicking on a parent node will zoom in to show its children.
If set to a React element, the option is the customized React element of rendering the content. If set to a function, the function will be called to render the content.
The fill color of treemap nodes.
The stroke color of treemap nodes.
Array of colors to use for the treemap nodes.
Customize nest index content for the breadcrumb navigation in nested treemaps.
If set false, animation of treemap will be disabled. If set “auto”, the animation will be disabled in SSR and will respect the user’s prefers-reduced-motion system preference for accessibility.
If set false, animation of treemap will be disabled when data changes.
Specifies when the animation should begin, the unit of this option is ms.
Specifies the duration of animation, the unit of this option is ms.
The type of easing function.
The customized event handler of animation start.
The customized event handler of animation end.
The customized event handler of mouseenter on a node.
The customized event handler of mouseleave on a node.
The customized event handler of click on a node.
CSS class name for the chart container.
Inline CSS styles for the chart container.
The unique id of chart.
Decides the time interval to throttle events.