syncfusion-maui-treemap

$npx mdskill add syncfusion/maui-ui-components-skills/syncfusion-maui-treemap

Visualizes hierarchical data with nested rectangles sized and colored by values.

  • Solves the need to display multi-level categorized data with size and color encoding.
  • Depends on Syncfusion .NET MAUI TreeMap (SfTreeMap) control and NuGet package.
  • Decides layout and coloring based on data values and hierarchical grouping paths.
  • Delivers interactive TreeMap with legends, tooltips, and customizable brush settings.

SKILL.md

.github/skills/syncfusion-maui-treemapView on GitHub ↗
---
name: syncfusion-maui-treemap
description: Implements Syncfusion .NET MAUI TreeMap (SfTreeMap) for visualizing hierarchical data with rectangles sized and colored by values. Use when implementing hierarchical data visualization, heat maps, squarified layouts, multi-level data grouping, or brush settings for hierarchical displays. This skill covers installation, data binding, layout types, hierarchical levels with GroupPath, legend configuration, tooltips, and TreeMap customization.
metadata:
  author: "Syncfusion Inc"
  version: "34.1.29"
---

# Implementing Syncfusion .NET MAUI TreeMap

The Syncfusion .NET MAUI TreeMap (SfTreeMap) is a powerful data visualization control that represents hierarchical data using nested rectangles. Each rectangle's size and color are determined by underlying data values, making it ideal for visualizing large datasets with hierarchical structure, such as organizational charts, file systems, population data, sales distributions, and more.

## When to Use This Skill

Use this skill when you need to:

- **Visualize hierarchical data** with nested rectangles where size represents data magnitude
- **Display multi-level categorized data** (e.g., sales by region → country → product)
- **Create heat maps** showing data distribution across categories with color-coded values
- **Implement squarified or slice-and-dice layouts** for optimal space utilization
- **Show data with legends and tooltips** for interactive exploration
- **Enable selection and interaction** with hierarchical data items
- **Apply various color schemes** (uniform, range-based, desaturation, or palette) to represent data values
- **Customize appearance** of leaf items, group headers, borders, labels, and more

Common scenarios include population visualization, sales analytics, file storage analysis, organizational hierarchies, budget breakdowns, and any domain requiring proportional area representation of hierarchical data.

## Component Overview

**Key Features:**

- **Data Binding**: Bind to hierarchical collections with automatic visualization
- **Layout Types**: Squarified (default), SliceAndDiceAuto, SliceAndDiceHorizontal, SliceAndDiceVertical
- **Hierarchical Levels**: Multi-level support using GroupPath for nested data structures
- **Brush Settings**: Four types - Uniform, Range, Desaturation, and Palette for flexible coloring
- **Legend**: Customizable legend with icon types, placement, and text styling
- **Tooltip**: Interactive tooltips displaying data details on hover/tap
- **Selection**: Single or multiple selection modes with customizable highlighting
- **Accessibility**: Built-in keyboard navigation, screen reader support, and WCAG compliance
- **Customization**: Extensive styling options for leaf items, headers, borders, labels, and spacing

## Documentation and Navigation Guide

### Getting Started
📄 **Read:** [references/getting-started.md](references/getting-started.md)
- NuGet package installation (Syncfusion.Maui.TreeMap)
- Handler registration (ConfigureSyncfusionCore in MauiProgram.cs)
- Basic TreeMap implementation in XAML and C#
- Data model and view model setup
- DataSource binding and PrimaryValuePath configuration
- Adding labels with LabelPath
- Complete minimal working example

**When to read**: Start here for initial setup and first TreeMap implementation.

### Layout Configuration
📄 **Read:** [references/layouts.md](references/layouts.md)
- Squarified layout (optimal aspect ratio, default)
- SliceAndDiceAuto layout (adaptive direction)
- SliceAndDiceHorizontal layout (horizontal slicing)
- SliceAndDiceVertical layout (vertical slicing)
- LayoutType property usage
- Choosing the right layout for your data
- Visual comparison of layout types

**When to read**: When you need to change the TreeMap layout algorithm or understand which layout works best for your data structure.

### Hierarchical Levels
📄 **Read:** [references/hierarchical-levels.md](references/hierarchical-levels.md)
- Understanding levels in TreeMap
- GroupPath property for multi-level categorization
- Adding multiple levels (n-level support)
- Level appearance customization (Spacing, HeaderHeight, Background)
- Stroke and StrokeWidth for level borders
- TextStyle for header text
- Group item brush settings (PaletteBrushSettings)

**When to read**: When implementing multi-level hierarchical data (e.g., Continent → Country → City) or customizing group header appearance.

### Color and Brush Settings
📄 **Read:** [references/brush-settings.md](references/brush-settings.md)
- UniformBrushSettings (single color for all items)
- RangeBrushSettings (color by value ranges with From/To)
- DesaturationBrushSettings (gradient by saturation levels)
- PaletteBrushSettings (multiple colors from a palette)
- RangeColorValuePath configuration
- LegendLabel for range definitions
- When to use each brush type

**When to read**: When you need to apply color schemes to visualize data values, ranges, or categories.

### Leaf Item Customization
📄 **Read:** [references/leaf-item-customization.md](references/leaf-item-customization.md)
- LabelPath for displaying text on leaf items
- Spacing between leaf items
- Stroke and StrokeWidth for leaf borders
- TextStyle configuration (color, font, size, attributes)
- Label overflow modes (wrap, trim)
- Label template customization
- ShowLabels property

**When to read**: When customizing the appearance and labeling of individual data items (leaf nodes).

### Legend Configuration
📄 **Read:** [references/legend.md](references/legend.md)
- Enabling legend with ShowLegend property
- Legend placement (Top, Bottom, Left, Right)
- LegendSettings configuration
- Icon types (Circle, Rectangle, Diamond, Triangle, etc.)
- Icon size customization
- Text style for legend items
- Legend item template
- Integration with RangeBrushSettings

**When to read**: When adding a legend to explain color coding or value ranges in the TreeMap.

### Tooltip Implementation
📄 **Read:** [references/tooltip.md](references/tooltip.md)
- Enabling tooltip with ShowToolTip property
- Default tooltip behavior
- Tooltip template customization
- TooltipTemplate property usage
- Data context in tooltips
- Styling tooltip appearance
- Tooltips for leaf items vs group items

**When to read**: When adding interactive tooltips to display additional data on hover or tap.

### Selection and Interaction
📄 **Read:** [references/selection-interaction.md](references/selection-interaction.md)
- SelectionMode property (None, Single, Multiple)
- Single vs multiple selection behavior
- SelectedItems collection
- SelectionChanged event handling
- Highlight settings (HighlightOnSelection)
- Selection stroke and fill customization
- Programmatic selection

**When to read**: When implementing user interaction features like selecting items, highlighting, or responding to selection events.

### Accessibility and Events
📄 **Read:** [references/accessibility-events.md](references/accessibility-events.md)
- Accessibility support overview
- Keyboard navigation support
- WCAG compliance features
- ItemSelected and ItemDeselected events
- ItemTapped event
- Drilldown functionality
- Right-to-left (RTL) support
- Semantic properties for accessibility

**When to read**: When implementing accessible TreeMaps, handling events, or supporting RTL languages.

More from syncfusion/maui-ui-components-skills

SkillDescription
syncfusion-maui-accordionImplements Syncfusion .NET MAUI Accordion (SfAccordion) - a vertically collapsible panel with stacked headers for expanding/collapsing content. Use when working with accordions, collapsible panels, expandable lists, employee lists with details, or FAQ sections in .NET MAUI applications. Covers AccordionItem configuration, expand modes, and grouped content display.
syncfusion-maui-ai-assistviewImplements Syncfusion .NET MAUI AI AssistView (SfAIAssistView) for AI-powered interactive chat interfaces. Use when working with AI chat interfaces, AI AssistView, SfAIAssistView, conversational UI, or chat with AI responses. Covers integrating AI services, creating chat UIs, implementing conversation flows, managing AI requests/responses, and displaying AI suggestions.
syncfusion-maui-autocompleteImplements and configure Syncfusion .NET MAUI Autocomplete (SfAutocomplete) control for intelligent text input with suggestions. Use when implementing autocomplete, autosuggest, type-ahead search, smart search, or filtered dropdowns in .NET MAUI applications. Covers data binding, filtering modes, custom search logic, AI-powered search, multi-selection with tokens, and UI customization.
syncfusion-maui-avatar-viewImplements Syncfusion .NET MAUI Avatar View (SfAvatarView) for displaying user profile pictures, initials, or group avatars. Use when working with avatar views, profile pictures, user images, initials display, profile icons, or contact images. Ideal for implementing user profile displays, contact lists, chat interfaces, or social feeds.
syncfusion-maui-backdropImplements Syncfusion .NET MAUI Backdrop Page (SfBackdropPage) with back layer and front layer surfaces. Use when working with backdrop pages, SfBackdropPage, back layer, front layer, or reveal/conceal animations. Covers backdrop navigation patterns, header icons, corner shapes, reveal height, layer state events, and liquid glass effect.
syncfusion-maui-badge-viewImplements Syncfusion .NET MAUI Badge View (SfBadgeView) control. Use when adding badge notifications, status indicators, unread counts, or notification overlays to MAUI applications. Covers SfBadgeView setup, badge text customization, position adjustments, animations, predefined symbols, and accessibility features.
syncfusion-maui-barcode-generatorImplements Syncfusion .NET MAUI Barcode Generator (SfBarcodeGenerator) for generating machine-readable barcodes. Use when working with barcodes, barcode generation, QR codes, data matrix, EAN codes, UPC codes, Code128, or Code39. This skill covers both one-dimensional (linear) and two-dimensional (matrix) barcode symbologies with extensive customization options.
syncfusion-maui-busy-indicatorImplements Syncfusion .NET MAUI Busy Indicator (SfBusyIndicator) for showing loading states, data processing, and app activity indicators. Use when displaying loading indicators, busy animations, activity spinners, or processing feedback in .NET MAUI apps. Covers busy indicator setup, animations, and visual feedback during long-running operations.
syncfusion-maui-buttonImplements and customize Syncfusion .NET MAUI Button (SfButton) control. Use when working with MAUI buttons, SfButton implementation, button customization, or visual states. Covers button icons, background images, RTL support, Liquid Glass effects, custom button views, button styling, events, and checkable buttons.
syncfusion-maui-calendarImplements and customize Syncfusion .NET MAUI Calendar (SfCalendar) control. Use when implementing calendar functionality, date selection (single, multiple, range), or calendar views (month, year, decade, century). Covers date restrictions (min/max dates, EnablePastDates, SelectableDayPredicate), calendar customization, events (ViewChanged, SelectionChanged, Tapped), and header/footer customization.