/syncfusion-javascript:syncfusion-javascript-treemapfrom Syncfusion JavaScript UI Controls
Create and customize Syncfusion TreeMap components in TypeScript and JavaScript for hierarchical data visualization. Use this skill when you need to implement a TreeMap, visualize hierarchical data structures, configure multi-level layouts, apply color mapping, enable drilldown navigation, add labels and tooltips, configure legends, handle selection and highlight, export to images or PDF, print, or customize internationalization and accessibility. Covers installation, data binding, layout types, levels, color mapping, labels, tooltips, legends, drilldown, interactivity, print/export, RTL, locale formatting, and accessibility.
Ships in Syncfusion JavaScript UI Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The TreeMap component visualizes hierarchical or grouped data as nested rectangles. Each rectangle represents a data item, and its size is determined by a numeric field mapped through weightValuePath. TreeMaps are useful for displaying structures such as product categories, regional breakdowns, market segments, or any grouped dataset where relative magnitude matters. This guide covers both TypeScript and JavaScript implementations.
levels and groupPathChoose your reference based on what you need to accomplish:
📄 Read: references/api-reference.md
📄 Read: references/getting-started.md
TreeMapModule📄 Read: references/data-binding.md
levelsweightValuePath for item sizing📄 Read: references/color-mapping.md
colorValuePathleafItemSettings.colorMapping📄 Read: references/drilldown-and-navigation.md
levelsdrillDownView behaviordrillStart, drillEnd)📄 Read: references/levels-and-layout.md
groupPath and grouped renderingSquarified, SliceAndDiceVertical, SliceAndDiceHorizontal, SliceAndDiceAuto)📄 Read: references/labels-tooltips-legend.md
📄 Read: references/selection-interactivity.md
selectItem(...)📄 Read: references/print-export-accessibility.md
📄 Read: references/internationalization.md
setCulture() and setCurrencyCode()import { TreeMap } from '@syncfusion/ej2-treemap';
const data = [
{ Category: 'Electronics', Item: 'Laptops', Size: 150 },
{ Category: 'Electronics', Item: 'Phones', Size: 200 },
{ Category: 'Furniture', Item: 'Chairs', Size: 100 },
{ Category: 'Furniture', Item: 'Tables', Size: 120 }
];
const treeMap = new TreeMap({
dataSource: data,
weightValuePath: 'Size',
levels: [
{ groupPath: 'Category' }
],
leafItemSettings: {
labelPath: 'Item',
gap: 4,
border: { color: '#ffffff', width: 1 }
}
});
treeMap.appendTo('#treemap-container');
<div id="treemap-container" style="width: 100%; height: 500px;"></div>
var data = [
{ Category: 'Electronics', Item: 'Laptops', Size: 150 },
{ Category: 'Electronics', Item: 'Phones', Size: 200 },
{ Category: 'Furniture', Item: 'Chairs', Size: 100 },
{ Category: 'Furniture', Item: 'Tables', Size: 120 }
];
var treeMap = new ej.treemap.TreeMap({
dataSource: data,
weightValuePath: 'Size',
levels: [
{ groupPath: 'Category' }
],
leafItemSettings: {
labelPath: 'Item',
gap: 4,
border: { color: '#ffffff', width: 1 }
}
});
treeMap.appendTo('#treemap-container');
Display grouped hierarchical data using levels and groupPath.
import { TreeMap } from '@syncfusion/ej2-treemap';
const treeMap = new TreeMap({
dataSource: data,
weightValuePath: 'Value',
levels: [
{ groupPath: 'Region', headerFormat: '${Region}' },
{ groupPath: 'Country', headerFormat: '${Country}' }
],
leafItemSettings: {
labelPath: 'Country'
}
});
treeMap.appendTo('#treemapContainer');
Use range color mapping through rangeColorValuePath and leafItemSettings.colorMapping.
import { TreeMap } from '@syncfusion/ej2-treemap';
const treeMap = new TreeMap({
dataSource: data,
weightValuePath: 'Value',
rangeColorValuePath: 'Value',
leafItemSettings: {
labelPath: 'Name',
colorMapping: [
{ from: 0, to: 50, color: '#3498db' },
{ from: 50, to: 100, color: '#e74c3c' }
]
}
});
treeMap.appendTo('#treemapContainer');
Enable drilldown with breadcrumb navigation for exploring grouped levels.
import { TreeMap } from '@syncfusion/ej2-treemap';
const treeMap = new TreeMap({
dataSource: data,
weightValuePath: 'Value',
enableDrillDown: true,
enableBreadcrumb: true,
breadcrumbConnector: ' / ',
levels: [
{ groupPath: 'Region' },
{ groupPath: 'Country' }
],
leafItemSettings: {
labelPath: 'Item'
}
});
treeMap.appendTo('#treemapContainer');
| Property | Type | Purpose |
|---|---|---|
dataSource | object[] | Data collection for TreeMap items |
weightValuePath | string | Numeric field used to size each item |
leafItemSettings | object | Leaf item configuration such as labels, borders, templates, and color mapping |
levels | object[] | Hierarchy configuration using groupPath and header settings |
layoutType | 'Squarified' | 'SliceAndDiceVertical' | 'SliceAndDiceHorizontal' | 'SliceAndDiceAuto' | Rectangle arrangement algorithm |
colorValuePath | string | Data field used for direct item color assignment |
equalColorValuePath | string | Data field used for category-based color mapping |
rangeColorValuePath | string | Data field used for numeric range color mapping |
enableDrillDown | boolean | Enables drilldown navigation through grouped levels |
enableBreadcrumb | boolean | Displays breadcrumb navigation during drilldown |
legendSettings | object | Legend display and styling configuration |
tooltipSettings | object | Tooltip visibility, formatting, and template configuration |
selectionSettings | object | Selection appearance and behavior configuration |
highlightSettings | object | Hover highlight appearance configuration |
enableRtl | boolean | Enables right-to-left rendering |
locale | string | Overrides the component culture |
format | string | Applies numeric formatting such as n2, c, or p |
useGroupingSeparator | boolean | Enables culture-aware number grouping separators |
allowPrint | boolean | Enables print support |
allowImageExport | boolean | Enables image export support |
allowPdfExport | boolean | Enables PDF export support |
description | string | Adds descriptive accessibility text for the component |
tabIndex | number | Controls focus order for the TreeMap container |
new TreeMap() constructor and appendTo() method for both TypeScript and JavaScript.TreeMapLegendService, TreeMapTooltipService, TreeMapSelectionService, TreeMapHighlightServicePrintService, ImageExportService, PdfExportServiceleafItemSettings.colorMapping and pair it with equalColorValuePath or rangeColorValuePath when needed.selectItem(levelOrder, isSelected?) method for updating selection state.references/API-Refernce_JavaScript.md (opens in a new tab)references/API-Refernce_TypeScript.md (opens in a new tab)references/color-mapping.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/drilldown-and-navigation.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/internationalization.md (opens in a new tab)references/labels-tooltips-legend.md (opens in a new tab)references/levels-and-layout.md (opens in a new tab)references/print-export-accessibility.md (opens in a new tab)references/selection-interactivity.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-javascript67 skills in this plugin
/syncfusion-javascript-3d-chartCreate interactive 3D charts in Syncfusion TypeScript and JavaScript. Immediately use this skill when user needs to build 3D visualizations, render 3D column/bar charts, configure 3D rotation and depth, visualize data in three dimensions, customize 3D chart appearance, handle 3D interactions, or implement advanced 3D features. Works with TypeScript (webpack/module-based) and JavaScript (CDN/ES5)./syncfusion-javascript-accordionBuild collapsible navigation panels with the Syncfusion TypeScript Accordion component. Use this skill when implementing vertical accordion menus, expanding/collapsing content panels, multi-step wizards, data-driven panels with dynamic content, tabbed navigation alternatives, or nested hierarchical content structures. Covers initialization, expand modes, animations, icons, templates, styling, data binding, and advanced use cases like form wizards./syncfusion-javascript-accumulation-chartImplements Syncfusion JavaScript accumulation charts (Pie, Doughnut, Funnel, Pyramid) for proportional and percentage-based visualizations. Use when displaying categorical or proportional data. Covers legend and label configuration, interactivity, accessibility, and customization. Works with TypeScript (modules) and JavaScript (CDN/ES5).Other plugins' skills for the same job