/syncfusion-aspnet-core:syncfusion-aspnetcore-treemapfrom Syncfusion ASP.NET Core UI Controls
Implement interactive hierarchical TreeMap visualizations in ASP.NET Core using Syncfusion. Create tree maps for hierarchical data with multiple layouts, color mapping, drill-down capabilities, and interactive features. Use this skill whenever the user needs to visualize hierarchical data structures, display nested categories with relative sizes, implement interactive drill-down navigation, or enable data exploration through tree maps.
Ships in Syncfusion ASP.NET Core UI Controls. 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.
The Syncfusion TreeMap control visualizes hierarchical data using nested rectangles, where each item's area represents its numeric value. It is suitable for displaying organizational structures, budget distributions, market segments, population distribution, sales performance, or any hierarchical dataset that requires size-based visual representation.
Use the TreeMap skill when you need to:
The TreeMap control renders hierarchical data as nested rectangles using SVG. It supports:
groupPath to organize flat data into visual groups.📄 Read: references/getting-started.md
📄 Read: references/data-binding.md
weightValuePath📄 Read: references/layouts.md
📄 Read: references/levels-and-hierarchy.md
groupPathheaderFormat📄 Read: references/leaf-items.md
📄 Read: references/color-mapping.md
📄 Read: references/data-labels-and-tooltips.md
📄 Read: references/interactive-features.md
📄 Read: references/print-export-accessibility.md
📄 Read: references/advanced-customization.md
@page
@using Syncfusion.EJ2.TreeMap
@{
List<TreeMapData> data = new List<TreeMapData>
{
new TreeMapData { Name = "Electronics", Category = "Tech", Sales = 5000 },
new TreeMapData { Name = "Furniture", Category = "Home", Sales = 3000 }
};
ViewBag.data = data;
}
<ejs-treemap id="treemap"
dataSource="ViewBag.data"
weightValuePath="Sales"
layoutType="Squarified">
<e-treemap-leafitemsettings labelPath="Name">
</e-treemap-leafitemsettings>
<e-treemap-levels>
<e-treemap-level groupPath="Category"
headerFormat="${Category}"
fill="#336699">
</e-treemap-level>
</e-treemap-levels>
</ejs-treemap>
@functions {
public class TreeMapData
{
public string Name { get; set; }
public string Category { get; set; }
public double Sales { get; set; }
}
}
Create a 3-level TreeMap showing continent → country → city with formatted headers:
@page
@{
List<PopulationData> populationData = new List<PopulationData>
{
new PopulationData { Continent = "Asia", Country = "India", City = "Chennai", Population = 12000000 },
new PopulationData { Continent = "Asia", Country = "India", City = "Mumbai", Population = 20000000 },
new PopulationData { Continent = "Europe", Country = "Germany", City = "Berlin", Population = 3600000 }
};
ViewBag.populationData = populationData;
}
<ejs-treemap id="treemap"
dataSource="ViewBag.populationData"
weightValuePath="Population"
layoutType="Squarified">
<e-treemap-leafitemsettings labelPath="City">
</e-treemap-leafitemsettings>
<e-treemap-levels>
<e-treemap-level groupPath="Continent"
headerFormat="${Continent}">
</e-treemap-level>
<e-treemap-level groupPath="Country"
headerFormat="${Country}">
</e-treemap-level>
</e-treemap-levels>
</ejs-treemap>
@functions {
public class PopulationData
{
public string Continent { get; set; }
public string Country { get; set; }
public string City { get; set; }
public double Population { get; set; }
}
}
Apply colors based on value ranges, such as low, medium, and high sales performance:
@page
@{
List<SalesData> salesData = new List<SalesData>
{
new SalesData { Name = "Electronics", Category = "Technology", Sales = 4500 },
new SalesData { Name = "Furniture", Category = "Home", Sales = 8500 },
new SalesData { Name = "Appliances", Category = "Home", Sales = 12500 }
};
ViewBag.salesData = salesData;
}
<ejs-treemap id="treemap"
dataSource="ViewBag.salesData"
weightValuePath="Sales"
rangeColorValuePath="Sales"
layoutType="Squarified">
<e-treemap-leafitemsettings labelPath="Name">
<e-leafitemsettings-colormappings>
<e-leafitemsettings-colormapping From="0"
To="5000"
Color=@("#66BB6A")>
</e-leafitemsettings-colormapping>
<e-leafitemsettings-colormapping From="5000"
To="10000"
Color=@("#FDD835")>
</e-leafitemsettings-colormapping>
<e-leafitemsettings-colormapping From="10000"
To="15000"
Color=@("#EF5350")>
</e-leafitemsettings-colormapping>
</e-leafitemsettings-colormappings>
</e-treemap-leafitemsettings>
</ejs-treemap>
@functions {
public class SalesData
{
public string Name { get; set; }
public string Category { get; set; }
public double Sales { get; set; }
}
}
Enable hierarchical exploration by configuring enableDrillDown and hierarchical levels:
@page
@{
List<DrillDownData> drillDownData = new List<DrillDownData>
{
new DrillDownData { Continent = "Asia", Country = "India", State = "Tamil Nadu", Name = "Chennai", Sales = 7000 },
new DrillDownData { Continent = "Asia", Country = "India", State = "Maharashtra", Name = "Mumbai", Sales = 9000 },
new DrillDownData { Continent = "Europe", Country = "Germany", State = "Berlin", Name = "Berlin City", Sales = 6000 }
};
ViewBag.drillDownData = drillDownData;
}
<ejs-treemap id="treemap"
dataSource="ViewBag.drillDownData"
weightValuePath="Sales"
enableDrillDown="true"
layoutType="Squarified">
<e-treemap-leafitemsettings labelPath="Name">
</e-treemap-leafitemsettings>
<e-treemap-levels>
<e-treemap-level groupPath="Continent"
headerFormat="${Continent}">
</e-treemap-level>
<e-treemap-level groupPath="Country"
headerFormat="${Country}">
</e-treemap-level>
<e-treemap-level groupPath="State"
headerFormat="${State}">
</e-treemap-level>
</e-treemap-levels>
</ejs-treemap>
@functions {
public class DrillDownData
{
public string Continent { get; set; }
public string Country { get; set; }
public string State { get; set; }
public string Name { get; set; }
public double Sales { get; set; }
}
}
dataSource - Specifies the data collection used to render the TreeMap.weightValuePath - Maps the numeric field used to calculate rectangle size.layoutType - Defines the layout algorithm, such as Squarified, SliceAndDiceVertical, SliceAndDiceHorizontal, or SliceAndDiceAuto.rangeColorValuePath - Maps the numeric field used for range-based color mapping.equalColorValuePath - Maps the field used for equal/category-based color mapping.enableDrillDown - Enables hierarchical drill-down navigation.enableRtl - Enables right-to-left rendering support.levels - Defines hierarchical grouping using one or more groupPath levels.leafItemSettings - Configures leaf item appearance, including labels, gaps, templates, and color mapping.colorMapping - Defines rules for applying colors based on value ranges, equal values, opacity, or desaturation.weightValuePath to represent the numeric value used for rectangle sizing.references/advanced-customization.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/data-labels-and-tooltips.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/interactive-features.md (opens in a new tab)references/layouts.md (opens in a new tab)references/leaf-items.md (opens in a new tab)references/levels-and-hierarchy.md (opens in a new tab)references/print-export-accessibility.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-aspnet-core66 skills in this plugin
/syncfusion-aspnetcore-3d-chartGuide for implementing Syncfusion 3D Chart in ASP.NET Core. Always use this skill when user needs 3D chart functionality, data visualization, series configuration, axes setup, or interactive chart features like tooltips and selection. Covers setup, data binding, chart types, styling, and user interactions./syncfusion-aspnetcore-accordionImplement Syncfusion Accordion component for organizing expandable navigation and content sections with single or multiple pane expansion support./syncfusion-aspnetcore-Other plugins' skills for the same job