skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
syncfusion/angular-ui-components-skills238 installs

syncfusion-angular-treemap

Create and customize Syncfusion Angular TreeMap components 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.

How do I install this agent skill?

npx skills add https://github.com/syncfusion/angular-ui-components-skills --skill syncfusion-angular-treemap
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides comprehensive documentation and implementation guides for the Syncfusion Angular TreeMap component. No security issues, malicious code, or suspicious patterns were detected. The skill follows standard practices for a UI component library, directing users to official vendor resources.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

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' | 'SliceAndDiceHorizontal' | 'SliceAndDiceAuto'Rectangle arrangement algorithm
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.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/syncfusion/angular-ui-components-skills/syncfusion-angular-treemap">View syncfusion-angular-treemap on skillZs</a>