syncfusion-react-treemaps

Implements Syncfusion React TreeMap components for hierarchical data visualization with drill-down and color mapping.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/haresh-sai06/HF_APP_Frontend --skill syncfusion-react-treemaps-haresh-sai06
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: syncfusion-react-treemaps
Source: https://github.com/haresh-sai06/HF_APP_Frontend/tree/main/.agents/skills/syncfusion-react-treemaps
Command: npx skills add https://github.com/haresh-sai06/HF_APP_Frontend --skill syncfusion-react-treemaps-haresh-sai06

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @syncfusion/ej2-react-treemap, and includes references (resource) components.

What problem does it solve? Building interactive hierarchical data visualizations in React requires configuring many TreeMap options—data binding, layouts, color mapping, drill-down, legends, and accessibility—and this Skill provides structured guidance and working code patterns for the Syncfusion React TreeMap component. ## Core Features & Use Cases - Data Binding & Hierarchies: Bind flat or multi-level hierarchical data using weightValuePath and LevelsDirective, including remote data sources and transformation patterns. - Color Mapping & Layouts: Apply range, equal, or desaturation color mapping and choose between Squarified, Horizontal, Vertical, and SliceAndDice layouts. - Interactivity & Customization: Enable drill-down navigation, tooltips, legends, selection, label templates, RTL support, accessibility, and print/export. - Use Case: Visualize regional sales data with drill-down from country to state to city, color-coded by revenue ranges, with tooltips and a legend for an executive dashboard. ## Quick Start Ask the AI to create a React TreeMap component using @syncfusion/ej2-react-treemap that binds your data array with a weightValuePath and displays labels for each item.

Frequently Asked Questions about syncfusion-react-treemaps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a TreeMap in React with Syncfusion?▼

Install @syncfusion/ej2-react-treemap, then render TreeMapComponent with dataSource, weightValuePath for sizing, and leafItemSettings.labelPath for labels. Set a height like 350px and the TreeMap renders rectangles sized proportionally to your numeric values.

How do I enable drill-down in a Syncfusion React TreeMap?▼

Set enableDrillDown={true} and define hierarchy levels with LevelsDirective and LevelDirective groupPath entries. Clicking an item drills into the next level, and drillStart/drillEnd events let you customize or cancel navigation.

What color mapping options does Syncfusion TreeMap support?▼

TreeMap supports three color mapping types: range mapping for value intervals, equal mapping for exact categorical values, and desaturation mapping using minOpacity and maxOpacity on a single color. Configure them via leafItemSettings.colorMapping with rangeColorValuePath or equalColorValuePath.

Does Syncfusion React TreeMap support export and printing?▼

Yes, set allowImageExport or allowPrint to true and inject the ImageExport or Print services. Then call the export method with PNG, JPEG, SVG, or PDF, or call print on the component instance via a ref.

Why are my TreeMap rectangle sizes incorrect?▼

Rectangle sizes come from weightValuePath, which must reference a numeric property. Non-numeric values, missing fields, or undefined entries default to zero, so convert values with Number() and verify every record contains the weight property.

When should I not use a TreeMap for data visualization?▼

Avoid TreeMap for simple flat data with few items, time-series data, or relationship graphs. Use bar or column charts for small flat datasets, line charts for trends over time, and diagram components for entity relationships.