syncfusion-blazor-treemap — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited syncfusion-blazor-treemap (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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<TValue> | 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 effectsWeightValuePath 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.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.