Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
syncfusion avatar

Syncfusion Angular Treemap

  • 166 installs
  • Updated August 4, 2026
  • syncfusion/angular-ui-components-skills

Use syncfusion-angular-treemap for development tasks

About

syncfusion-angular-treemap: A skill for development. This provides functionality for development workflows.

  • syncfusion-angular-treemap

Syncfusion Angular Treemap by the numbers

  • 166 all-time installs (skills.sh)
  • +11 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #2,333 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-treemap

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs166
Last updatedAugust 4, 2026
Repositorysyncfusion/angular-ui-components-skills

What it does

Use syncfusion-angular-treemap for development tasks

Files

SKILL.mdMarkdownGitHub ↗

Implementing Syncfusion Angular TreeMap

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.

When to Use This Skill

  • Visualizing hierarchical data: Display grouped or multi-level data such as regions, departments, or product categories
  • Multi-level data visualization: Show parent-child relationships using levels and groupPath
  • Creating drill-down interfaces: Enable interactive navigation through hierarchy levels
  • Color-coding data: Use range, equal, desaturation, palette, or direct color binding
  • Adding interactive features: Implement selection, highlight, click, double-click, and right-click interactions
  • Customizing appearance: Modify layout, colors, borders, labels, headers, legends, and templates
  • Displaying supplementary information: Add labels, tooltips, legends, and formatted values
  • Exporting visualizations: Print or export as PNG, JPEG, SVG, or PDF
  • International support: Enable RTL, locale-specific number formatting, and culture-aware display
  • Accessibility: Improve screen reader support, ARIA naming, contrast, and focus behavior

Documentation and Navigation Guide

Choose your reference based on what you need to accomplish:

API Reference

📄 Read: references/api-reference.md

Getting Started

📄 Read: references/getting-started.md

  • Installation and npm package setup
  • Importing TreeMapModule
  • Creating your first TreeMap component
  • Theme and style configuration
  • Basic component with simple data

Data Binding

📄 Read: references/data-binding.md

  • Binding flat collections
  • Grouping data with levels
  • Mapping data source properties to TreeMap fields
  • Configuring weightValuePath for item sizing
  • Dynamic data updates and state-driven binding

Color Mapping

📄 Read: references/color-mapping.md

  • Range color mapping for numeric values
  • Equal color mapping for category-based colors
  • Desaturation color mapping with opacity
  • Palette-based coloring
  • Direct color binding with colorValuePath
  • Gradient colors with leafItemSettings.colorMapping

Drilldown and Navigation

📄 Read: references/drilldown-and-navigation.md

  • Enabling drilldown functionality
  • Parent-child navigation with levels
  • drillDownView behavior
  • Breadcrumb navigation
  • Drill events (drillStart, drillEnd)
  • Resetting to root through application state when needed

Levels and Layout

📄 Read: references/levels-and-layout.md

  • Configuring multiple hierarchy levels
  • groupPath and grouped rendering
  • Layout types (Squarified, SliceAndDiceVertical, SliceAndDiceHorizontal, SliceAndDiceAuto)
  • Group spacing and leaf gaps
  • Header formatting and styling
  • Header templates and header sizing

Labels, Tooltips, and Legend

📄 Read: references/labels-tooltips-legend.md

  • Data label configuration and formatting
  • Label templates and template positioning
  • Handling label intersections and overflow
  • Tooltip visibility and formatting
  • Custom tooltip templates
  • Legend display and configuration
  • Coordinating legend with color mapping, selection, and highlight

Selection and Interactivity

📄 Read: references/selection-interactivity.md

  • Enabling selection and highlight
  • Customizing selection colors and borders
  • Legend-based selection and hover interaction
  • Click, item-selected, double-click, and right-click events
  • Programmatic selection with selectItem(...)
  • Managing single-item or multi-item workflows in application state

Print, Export, and Accessibility

📄 Read: references/print-export-accessibility.md

  • Print functionality
  • Image export (PNG, JPEG, SVG)
  • PDF export with orientation options
  • Base64 export handling
  • WCAG accessibility support
  • Screen reader support and ARIA labels
  • Contrast and focus considerations

Internationalization

📄 Read: references/internationalization.md

  • Right-to-left (RTL) rendering
  • Locale configuration and number formatting
  • Globalization for labels and tooltips
  • Render direction configuration
  • Multi-language data binding
  • Cultural customization with setCulture() and setCurrencyCode()

Quick Start

import { Component, signal } from '@angular/core';
import { TreeMapModule } from '@syncfusion/ej2-angular-treemap';

@Component({
  selector: 'app-treemap',
  standalone: true,
  imports: [TreeMapModule],
  template: `
    <ejs-treemap
      id="treemap-container"
      [dataSource]="data()"
      weightValuePath="Size"
      [levels]="levels"
      [leafItemSettings]="leafItemSettings">
    </ejs-treemap>
  `,
  styles: [`
    #treemap-container {
      display: block;
      width: 100%;
      height: 500px;
    }
  `]
})
export class TreeMapComponent {
  public data = signal([
    { Category: 'Electronics', Item: 'Laptops', Size: 150 },
    { Category: 'Electronics', Item: 'Phones', Size: 200 },
    { Category: 'Furniture', Item: 'Chairs', Size: 100 },
    { Category: 'Furniture', Item: 'Tables', Size: 120 }
  ]);

  public levels = [
    { groupPath: 'Category' }
  ];

  public leafItemSettings = {
    labelPath: 'Item',
    gap: 4,
    border: { color: '#ffffff', width: 1 }
  };
}

Common Patterns

Pattern 1: Basic Hierarchical Visualization

Display grouped hierarchical data using levels and groupPath.

public levels = [
  { groupPath: 'Region', headerFormat: '${Region}' },
  { groupPath: 'Country', headerFormat: '${Country}' }
];

public leafItemSettings = {
  labelPath: 'Country'
};

Pattern 2: Color-Mapped Values

Use range color mapping through rangeColorValuePath and leafItemSettings.colorMapping.

<ejs-treemap
  [dataSource]="data()"
  weightValuePath="Value"
  rangeColorValuePath="Value"
  [leafItemSettings]="leafItemSettings">
</ejs-treemap>
public leafItemSettings = {
  labelPath: 'Name',
  colorMapping: [
    { from: 0, to: 50, color: '#3498db' },
    { from: 50, to: 100, color: '#e74c3c' }
  ]
};

Pattern 3: Interactive Drilldown

Enable drilldown with breadcrumb navigation for exploring grouped levels.

<ejs-treemap
  [dataSource]="data()"
  weightValuePath="Value"
  [enableDrillDown]="true"
  [enableBreadcrumb]="true"
  breadcrumbConnector=" / "
  [levels]="levels"
  [leafItemSettings]="leafItemSettings">
</ejs-treemap>

Key Props and Configuration

PropertyTypePurpose
dataSourceobject[]Data collection for TreeMap items
weightValuePathstringNumeric field used to size each item
leafItemSettingsobjectLeaf item configuration such as labels, borders, templates, and color mapping
levelsobject[]Hierarchy configuration using groupPath and header settings
layoutType`'Squarified' \'SliceAndDiceVertical' \
colorValuePathstringData field used for direct item color assignment
equalColorValuePathstringData field used for category-based color mapping
rangeColorValuePathstringData field used for numeric range color mapping
enableDrillDownbooleanEnables drilldown navigation through grouped levels
enableBreadcrumbbooleanDisplays breadcrumb navigation during drilldown
legendSettingsobjectLegend display and styling configuration
tooltipSettingsobjectTooltip visibility, formatting, and template configuration
selectionSettingsobjectSelection appearance and behavior configuration
highlightSettingsobjectHover highlight appearance configuration
enableRtlbooleanEnables right-to-left rendering
localestringOverrides the component culture
formatstringApplies numeric formatting such as n2, c, or p
useGroupingSeparatorbooleanEnables culture-aware number grouping separators
allowPrintbooleanEnables print support
allowImageExportbooleanEnables image export support
allowPdfExportbooleanEnables PDF export support
descriptionstringAdds descriptive accessibility text for the component
tabIndexnumberControls focus order for the TreeMap container

Implementation Notes

  • Prefer TreeMapModule for focused standalone Angular components.
  • Use TreeMapLegendService, TreeMapTooltipService, TreeMapSelectionService, TreeMapHighlightService, PrintService, ImageExportService, and PdfExportService only when the corresponding features are enabled.
  • For color mapping, configure leafItemSettings.colorMapping and pair it with equalColorValuePath or rangeColorValuePath when needed.
  • For programmatic selection, use selectItem(levelOrder, isSelected?) rather than unsupported helper methods.
  • For accessibility, rely on TreeMap’s built-in ARIA support, meaningful titles, labels, legends, descriptions, and strong color contrast.
  • For keyboard and advanced interaction workflows, provide surrounding Angular controls where needed rather than assuming extra undocumented TreeMap keyboard APIs.

Related skills

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.