/syncfusion-blazor:syncfusion-blazor-treemapfrom Syncfusion Blazor Components
Implement and configure the Syncfusion Blazor TreeMap component (SfTreeMap) for hierarchical data visualization. Use this when working with treemaps, area-proportional visualizations, or heat-map-like block displays. This skill covers TreeMap setup, layout configuration, data binding, color mapping, drill-down navigation, and accessibility features.
Ships in Syncfusion Blazor Components. 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.
NuGet: Syncfusion.Blazor.TreeMap + Syncfusion.Blazor.Themes
Namespace: Syncfusion.Blazor.TreeMap
This skill collects all guidance for implementing the Syncfusion Blazor TreeMap component. Use the navigation guide below to open the specific reference topic you need; each reference file is self-contained and includes examples, edge cases, and troubleshooting.
SfTreeMap<TValue>ITreeMapTreeMapLevels, TreeMapLeafItemSettings, TreeMapLegendSettings, TreeMapTooltipSettings, TreeMapSelectionSettings, TreeMapHighlightSettings, TreeMapEventsLayoutMode, RenderingMode, LabelPosition, LabelPlacement, LabelIntersectAction, LegendMode, LegendPosition, LegendOrientation, LegendShape, SelectionMode, HighLightModeLoadEventArgs, LoadedEventArgs, ItemRenderingEventArgs, ItemClickEventArgs, ItemSelectedEventArgs, ItemMoveEventArgs, LegendRenderingEventArgs, LegendItemRenderingEventArgs, TreeMapTooltipArgsDO NOT bind TreeMap to untrusted public APIs or third-party data sources without proper validation. Remote data can be manipulated to inject malicious code, corrupt visualizations, or cause denial-of-service attacks. Always:
For detailed security guidance, see: Security Considerations in data-binding.md
📄 Read: references/api-reference.md
📄 Read: references/getting-started.md
📄 Read: references/data-binding.md
📄 Read: references/layout-and-levels.md
📄 Read: references/leaf-items.md
📄 Read: references/color-mapping.md
📄 Read: references/labels.md
📄 Read: references/legend.md
📄 Read: references/tooltip.md
📄 Read: references/drill-down.md
📄 Read: references/selection-and-highlight.md
📄 Read: references/events-and-methods.md
📄 Read: references/advanced-features.md
📄 Read: references/troubleshooting.md
@using Syncfusion.Blazor.TreeMap
<SfTreeMap DataSource="@Data">
<TreeMapLevels>
<TreeMapLevel GroupPath="Category" />
</TreeMapLevels>
</SfTreeMap>
@code {
public object[] Data = new[] { new { Category = "A", Value = 10 } };
}
RangeColorMapping for value-driven coloring and Palette when mapping explicit colors.references/ and are self-contained with TOCs.A comprehensive guide for implementing hierarchical data visualization using Syncfusion Blazor TreeMap component. TreeMaps display hierarchical data as nested rectangles where the size and color of each rectangle represents different data dimensions.
Use this skill when you need to:
Common Use Cases:
The TreeMap component organizes data into nested rectangles using various layout algorithms (Squarified, SliceDiceAuto, Horizontal, Vertical). Each rectangle's size is proportional to a specified data value, and colors can represent additional dimensions through sophisticated color mapping strategies.
Key Capabilities:
📄 Read: references/getting-started.md
When to read: Setting up TreeMap for the first time, installation, basic implementation
What's covered:
📄 Read: references/data-binding.md
When to read: Connecting TreeMap to data sources, handling different data structures
What's covered:
📄 Read: references/layout-and-levels.md
When to read: Configuring TreeMap appearance, multi-level structures
What's covered:
📄 Read: references/leaf-items.md
When to read: Customizing individual TreeMap rectangles (leaf nodes)
What's covered:
📄 Read: references/color-mapping.md
When to read: Applying colors to represent data dimensions, creating heat maps
What's covered:
📄 Read: references/labels.md
When to read: Adding text labels to TreeMap items
What's covered:
📄 Read: references/legend.md
When to read: Adding legends for color mapping interpretation
What's covered:
📄 Read: references/tooltip.md
When to read: Adding hover information to TreeMap items
What's covered:
📄 Read: references/drill-down.md
When to read: Enabling interactive hierarchical navigation
What's covered:
📄 Read: references/selection-and-highlight.md
When to read: Adding user interaction for selecting/highlighting items
What's covered:
📄 Read: references/events-and-methods.md
When to read: Handling user interactions, lifecycle events, or invoking component methods
What's covered:
📄 Read: references/advanced-features.md
When to read: Implementing print/export, localization, accessibility, or performance optimization
What's covered:
Here's a minimal working example to get started:
@page "/treemap-demo"
@using Syncfusion.Blazor.TreeMap
<SfTreeMap DataSource="@GrowthReports"
WeightValuePath="GDP"
TValue="Country">
<TreeMapLeafItemSettings LabelPath="Name">
</TreeMapLeafItemSettings>
</SfTreeMap>
@code {
public class Country
{
public string Name { get; set; }
public double GDP { get; set; }
}
private List<Country> GrowthReports = new List<Country>
{
new Country { Name = "United States", GDP = 17946 },
new Country { Name = "China", GDP = 10866 },
new Country { Name = "Japan", GDP = 4123 },
new Country { Name = "Germany", GDP = 3355 },
new Country { Name = "United Kingdom", GDP = 2848 }
};
}
Prerequisites:
Syncfusion.Blazor.TreeMap NuGet packageProgram.cs: builder.Services.AddSyncfusionBlazor();@using Syncfusion.Blazor.TreeMap
<SfTreeMap DataSource="@SalesData"
WeightValuePath="Sales"
RangeColorValuePath="Growth"
TValue="Region">
<TreeMapLeafItemSettings LabelPath="Name">
<TreeMapLeafLabelStyle Color="#FFFFFF"></TreeMapLeafLabelStyle>
</TreeMapLeafItemSettings>
<TreeMapLegendSettings Visible="true" Position="@using Syncfusion.Blazor.TreeMap.LegendPosition.Top">
</TreeMapLegendSettings>
<TreeMapLevels>
<TreeMapLevel GroupPath="Continent" HeaderFormat="${Continent} - ${Sales}">
<TreeMapLevelBorder Color="#FFFFFF" Width="1"></TreeMapLevelBorder>
</TreeMapLevel>
</TreeMapLevels>
<TreeMapRangeColorMappings>
<TreeMapRangeColorMapping From="0" To="5" Color="@("#70AD47")" />
<TreeMapRangeColorMapping From="5" To="10" Color="@("#FFC000")" />
<TreeMapRangeColorMapping From="10" To="20" Color="@("#FF5722")" />
</TreeMapRangeColorMappings>
</SfTreeMap>
Use when: Displaying hierarchical business data with performance indicators
@using Syncfusion.Blazor.TreeMap
<SfTreeMap DataSource="@OrganizationData"
WeightValuePath="EmployeeCount"
EnableDrillDown="true"
TValue="Department">
<TreeMapLeafItemSettings LabelPath="Name">
</TreeMapLeafItemSettings>
<TreeMapBreadcrumbSettings Visible="true">
</TreeMapBreadcrumbSettings>
<TreeMapLevels>
<TreeMapLevel GroupPath="Division" HeaderFormat="${Division}">
</TreeMapLevel>
<TreeMapLevel GroupPath="Team" HeaderFormat="${Team}">
</TreeMapLevel>
</TreeMapLevels>
</SfTreeMap>
Use when: Users need to navigate through multi-level organizational or hierarchical data
@using Syncfusion.Blazor.TreeMap
<SfTreeMap DataSource="@PortfolioData"
WeightValuePath="Value"
TValue="Investment">
<TreeMapLeafItemSettings LabelPath="Name">
</TreeMapLeafItemSettings>
<TreeMapTooltipSettings Visible="true">
<Template>
@{
var data = context as Investment;
<div style="padding:5px;background:#fff;border:1px solid #ccc">
<b>@data.Name</b><br/>
Value: [email protected]("N0")<br/>
Return: @data.Return%
</div>
}
</Template>
</TreeMapTooltipSettings>
<TreeMapSelectionSettings Enable="true" Fill="#58a0d3" Opacity="0.8">
</TreeMapSelectionSettings>
<TreeMapHighlightSettings Enable="true" Fill="#e5e5e5" Opacity="0.6">
</TreeMapHighlightSettings>
</SfTreeMap>
Use when: Building interactive dashboards requiring user engagement
@using Syncfusion.Blazor.TreeMap
<SfTreeMap DataSource="@Categories"
WeightValuePath="Sales"
LayoutType="LayoutMode.Squarified"
Palette="@(new string[] {"#9999ff", "#CBCBCB", "#E8DAFF", "#E4E4E4"})"
TValue="Category">
<TreeMapLeafItemSettings LabelPath="Name" Fill="#8ebfe2">
<TreeMapLeafBorder Color="#FFFFFF" Width="2"></TreeMapLeafBorder>
</TreeMapLeafItemSettings>
<TreeMapTitleSettings Text="Product Category Sales">
</TreeMapTitleSettings>
</SfTreeMap>
Use when: Creating visually distinct category comparisons
Essential Properties:
| Property | Type | Purpose |
|---|---|---|
DataSource | IEnumerable | Data collection to bind |
WeightValuePath | string | Property determining rectangle size |
RangeColorValuePath | string | Property for color mapping values |
TValue | Type | Generic type of data items |
LayoutType | LayoutMode | Layout algorithm (Squarified, SliceDiceAuto, etc.) |
EnableDrillDown | bool | Enable hierarchical navigation |
Palette | string[] | Color palette for items |
Child Components:
TreeMapLeafItemSettings - Leaf node configurationTreeMapLevels - Multi-level hierarchyTreeMapRangeColorMappings / TreeMapEqualColorMappings - Color strategiesTreeMapLegendSettings - Legend configurationTreeMapTooltipSettings - Tooltip configurationTreeMapSelectionSettings - Selection behaviorTreeMapHighlightSettings - Hover effectssyncfusion-blazor-heatmap-chart skill) - For matrix-based heat map visualizationWeightValuePath matches a numeric property in your data modelRangeColorValuePath is set and color mappings are properly configuredEnableDrillDown="true" and configure TreeMapLevels with GroupPathFor comprehensive details on any topic, refer to the appropriate reference file listed in the navigation guide above.
references/advanced-features.md (opens in a new tab)references/api-reference.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/drill-down.md (opens in a new tab)references/events-and-methods.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/labels.md (opens in a new tab)references/layout-and-levels.md (opens in a new tab)references/leaf-items.md (opens in a new tab)references/legend.md (opens in a new tab)references/selection-and-highlight.md (opens in a new tab)references/tooltip.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-blazorOther plugins' skills for the same job
69 skills in this plugin
/syncfusion-blazor-3d-chartsProvides guidance for building and customizing Syncfusion Blazor 3D Charts. Trigger this skill whenever the user needs help with SfChart3D, 3D Column/Bar charts, axes, data binding, rotation, tilt, depth, legends, tooltips, or any configuration in Syncfusion.Blazor.Chart3D./syncfusion-blazor-accordionGuide for implementing the Syncfusion Blazor Accordion component for creating collapsible panels with expandable content. Use this skill when users need to build accordions, implement collapsible sections, create expandable panels, organize content in navigation components, implement FAQs, build collapsible menus, add nested accordions, configure expand modes (single or multiple), handle accordion events, customize accordion styling, implement accessible accordions with WCAG compliance, integrate data binding, or work with any vertically collapsible content containers in Blazor applications./syncfusion-blazor-accumulation-chartImplement Syncfusion Blazor Accumulation Chart (SfAccumulationChart) for proportional data visualization. Use this when creating pie charts, doughnut charts, funnel charts, or pyramid charts. This skill covers data labels, legends, tooltips, slice grouping, and part-to-whole visualizations in Blazor applications.