Syncfusion.AspNetMvc.TreeMap
35.2.15
Prefix Reserved
dotnet add package Syncfusion.AspNetMvc.TreeMap --version 35.2.15
NuGet\Install-Package Syncfusion.AspNetMvc.TreeMap -Version 35.2.15
<PackageReference Include="Syncfusion.AspNetMvc.TreeMap" Version="35.2.15" />
<PackageVersion Include="Syncfusion.AspNetMvc.TreeMap" Version="35.2.15" />
<PackageReference Include="Syncfusion.AspNetMvc.TreeMap" />
paket add Syncfusion.AspNetMvc.TreeMap --version 35.2.15
#r "nuget: Syncfusion.AspNetMvc.TreeMap, 35.2.15"
#:package Syncfusion.AspNetMvc.TreeMap@35.2.15
#addin nuget:?package=Syncfusion.AspNetMvc.TreeMap&version=35.2.15
#tool nuget:?package=Syncfusion.AspNetMvc.TreeMap&version=35.2.15
Syncfusion ASP.NET MVC TreeMap component
A hierarchical data visualization component that displays hierarchical data as a set of nested rectangles, where the size and color of each rectangle represent specific data values, enabling easy identification of patterns and relationships.
Using this package with an AI coding agent
Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.The setup detects your project's platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
Platform reference: https://ai.syncfusion.com/aspnet-mvc/llms.txt
Key features
- Multiple Layout Algorithms: Squarified, SliceAndDice (Horizontal, Vertical, Alternate) for flexible hierarchy visualization
- Multi-Level Hierarchy: Support for hierarchical data with drill-down capabilities for exploring nested data
- Color Mapping: Range-based, equal-distribution, and desaturation color mapping strategies
- Interactive Features: Tooltips and selection for detailed data exploration
- Legend Support: Legend for color range identification and filtering
- Data Labels: Customizable labels with trimming and intersection handling
- Export Capabilities: Export to PNG, JPEG, SVG, and PDF formats
- Responsive Design: Adapts to different screen sizes and devices
- Performance: Efficient rendering for large hierarchical datasets
- Accessibility: Full keyboard navigation and screen reader support
Common setup
These setup steps are required only once for your application, regardless of which Syncfusion components you use.
1. Install NuGet package
Install-Package Syncfusion.AspNetMvc.TreeMap
2. Add namespace reference
Edit Web.config under the Views folder and add the Syncfusion.EJ2 namespace:
<namespaces>
<add namespace="Syncfusion.EJ2"/>
</namespaces>
3. Add stylesheet and script references
In your layout file (~/Views/Shared/_Layout.cshtml), add the following in the <head> section:
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewBag.Title - Syncfusion Application</title>
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/35.2.15/fluent2.css" />
<script src="https://cdn.syncfusion.com/ej2/35.2.15/dist/ej2.min.js"></script>
</head>
4. Register script manager
At the end of the <body> tag in your layout file (~/Views/Shared/_Layout.cshtml):
<body>
@RenderBody()
@Html.EJS().ScriptManager()
</body>
Quick start
Step 1: Add the ASP.NET MVC TreeMap control
Add the Syncfusion ASP.NET MVC TreeMap control in the ~/Views/Home/Index.cshtml page:
<div id="container">
@Html.EJS().TreeMap("container").Load("load").WeightValuePath("Count").LeafItemSettings(leaf=>leaf.LabelPath("State")).Render()
</div>
<script>
function load(args)
{
var data = [
{ Title: 'State wise International Airport count in South America', State: "Brazil", Count: 25 },
{ Title: 'State wise International Airport count in South America', State: "Colombia", Count: 12 },
{ Title: 'State wise International Airport count in South America', State: "Argentina", Count: 9 },
{ Title: 'State wise International Airport count in South America', State: "Ecuador", Count: 7 },
{ Title: 'State wise International Airport count in South America', State: "Chile", Count: 6 },
{ Title: 'State wise International Airport count in South America', State: "Peru", Count: 3 },
{ Title: 'State wise International Airport count in South America', State: "Venezuela", Count: 3 },
{ Title: 'State wise International Airport count in South America', State: "Bolivia", Count: 2 },
{ Title: 'State wise International Airport count in South America', State: "Paraguay", Count: 2 },
{ Title: 'State wise International Airport count in South America', State: "Uruguay", Count: 2 },
{ Title: 'State wise International Airport count in South America', State: "Falkland Islands", Count: 1 },
{ Title: 'State wise International Airport count in South America', State: "French Guiana", Count: 1 },
{ Title: 'State wise International Airport count in South America', State: "Guyana", Count: 1 },
{ Title: 'State wise International Airport count in South America', State: "Suriname", Count: 1 },
];
args.treemap.dataSource = data;
}
</script>
Step 2: Run the application
Press Ctrl+F5 to run the application in your browser.
Documentation
Support
License
This is a commercial product and requires a paid license for possession or use. Review the Syncfusion EULA
About Syncfusion
Syncfusion provides 1800+ components and frameworks for web, mobile, and desktop development across multiple platforms:
Web: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com
sales@syncfusion.com | Toll Free: 1-888-9-DOTNET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 13.0.3)
- Syncfusion.AspNetMvc.Base (>= 35.2.15)
- Syncfusion.EJ2.JavaScript (>= 35.2.15)
- Syncfusion.Licensing (>= 35.2.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 35.2.15 | 66 | 11/30/2026 |
| 35.2.13 | 103 | 11/23/2026 |
| 35.2.12 | 121 | 11/18/2026 |
| 35.1.46 | 104 | 11/11/2026 |
| 35.1.43 | 113 | 11/2/2026 |
| 35.1.42 | 119 | 10/27/2026 |
| 35.1.41 | 145 | 10/20/2026 |
| 35.1.40 | 109 | 10/13/2026 |
| 35.1.39 | 119 | 10/6/2026 |
| 35.1.37 | 140 | 9/29/2026 |
| 34.2.9 | 133 | 9/21/2026 |
| 34.2.8 | 121 | 9/14/2026 |
| 34.2.7 | 170 | 9/8/2026 |
| 34.2.6 | 127 | 8/31/2026 |
| 34.2.5 | 140 | 8/25/2026 |
| 34.2.4 | 224 | 8/17/2026 |
| 34.2.3 | 145 | 8/11/2026 |
| 34.2.2 | 159 | 8/5/2026 |
| 34.1.33 | 147 | 7/27/2026 |
| 34.1.32 | 153 | 7/21/2026 |