/syncfusion-aspnet-core:syncfusion-aspnetcore-heatmap-chartfrom Syncfusion ASP.NET Core UI Controls
Implementing Syncfusion HeatMap Chart component for ASP.NET Core Razor Pages. Use this skill ALWAYS when the user needs to create heat maps to visualize two-dimensional data, customize cells with gradients or fixed colors, configure axes with multiple types, add legends with flexible positioning, bind array or JSON data, enable tooltips and cell selection, create bubble heat maps, or customize appearance and styling. Essential for data visualization, pattern detection, and matrix visualization use cases.
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.
Use this skill when you need to:
Index.cshtml and move data preparation/configuration into Index.cshtml.cs.The Syncfusion ASP.NET Core HeatMap Chart is a data visualization component used to represent two-dimensional data through color intensity. Each cell represents a value, and the color of that cell is calculated from the configured palette.
It is useful for:
Index.cshtml and Index.cshtml.cs.Use this section for:
Required setup in Pages/_ViewImports.cshtml:
@using YourApplication
@namespace YourApplication.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Syncfusion.EJ2
Replace YourApplication with the actual project namespace. For example, if the project name is AspNetCoreWebApp, use:
@using AspNetCoreWebApp
@namespace AspNetCoreWebApp.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Syncfusion.EJ2
Add the required theme and script references in Pages/Shared/_Layout.cshtml inside the head tag.
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/33.2.3/fluent.css" />
<script src="https://cdn.syncfusion.com/ej2/33.2.3/dist/ej2.min.js"></script>
Add the Syncfusion script manager before the closing body tag in Pages/Shared/_Layout.cshtml.
<ejs-scripts></ejs-scripts>
The HeatMap Chart can bind data in multiple forms:
For Razor Pages, the recommended approach is to keep data and configuration objects in Index.cshtml.cs and bind them in Index.cshtml through @Model.
Rendering modes:
SVG: Best for small and moderate datasets.Canvas: Best for large datasets.Auto: Lets the component choose the suitable rendering mode.Bubble HeatMap is useful when the cell should show values through bubble size, color, or both.
Common bubble options:
Use bubble HeatMap when each cell needs more visual differentiation than a plain rectangular tile.
The HeatMap appearance can be customized using:
titleSettingscellSettingspaletteSettingslegendSettingstooltipSettingsbackgroundColormarginheightwidthFor ASP.NET Core Razor Pages, strongly typed objects should be declared in Index.cshtml.cs and passed to the Tag Helper from Index.cshtml.
The HeatMap Chart supports these axis value types:
CategoryNumericDateTimeUse category axes when labels are names such as months, products, regions, or departments.
Use numeric axes when X and Y values are index-based or numeric ranges.
Use date-time axes when values represent dates or time intervals.
Use legends to explain how colors map to values.
Palette types:
Gradient: Best for continuous values.Fixed: Best for classified values or thresholds.Legend positions:
RightLeftTopBottomTooltips can be enabled using showTooltip="true" on the HeatMap.
Tooltip style can be customized with tooltipSettings.
Cell selection can be enabled using:
allowSelection="true"
enableMultiSelect="true"
Use events such as cellSelected, cellClick, and tooltipRender when custom interaction logic is required.
Recommended best practices:
Index.cshtml.Index.cshtml.cs.@Model.PropertyName for all Razor Page bindings.renderingMode="Auto" for responsive performance behavior.showLabel="false" for very large datasets.dataSourceSettings when JSON-style cell mapping is required.Index.cshtml.cs, Index.cshtml, and _ViewImports.cshtml consistent..cshtml files. Do not paste encoded tags like <ejs-heatmap> into the actual Razor file.The following example demonstrates a complete ASP.NET Core Razor Pages HeatMap Chart implementation using both Index.cshtml and Index.cshtml.cs.
This version keeps the Razor file clean and moves data generation, palette configuration, title styling, tooltip styling, and labels into the PageModel.
Replace YourApplication with your actual project namespace. For example, if your project is named AspNetCoreWebApp, use AspNetCoreWebApp.Pages.
@page
@model YourApplication.Pages.IndexModel
<ejs-heatmap
id="heatmap"
dataSource="@Model.DataSource"
showTooltip="true"
renderingMode="Auto"
allowSelection="true"
enableMultiSelect="true">
<e-heatmap-titlesettings
text="Sales Performance HeatMap"
textStyle="@Model.TitleTextStyle">
</e-heatmap-titlesettings>
<e-heatmap-xaxis
valueType="Category"
labels="@Model.XAxisLabels">
</e-heatmap-xaxis>
<e-heatmap-yaxis
valueType="Category"
labels="@Model.YAxisLabels">
</e-heatmap-yaxis>
<e-heatmap-datasourcesettings
isJsonData="true"
adaptorType="Cell"
xDataMapping="XValue"
yDataMapping="YValue"
valueMapping="Value">
</e-heatmap-datasourcesettings>
<e-heatmap-cellsettings
showLabel="true"
format="{value}"
textStyle="@Model.CellTextStyle">
</e-heatmap-cellsettings>
<e-heatmap-palettesettings
type="Gradient"
palette="@Model.Palette">
</e-heatmap-palettesettings>
<e-heatmap-legendsettings
visible="true"
position="Right"
showLabel="true"
height="150">
</e-heatmap-legendsettings>
<e-heatmap-tooltipsettings
textStyle="@Model.TooltipTextStyle">
</e-heatmap-tooltipsettings>
</ejs-heatmap>
using Microsoft.AspNetCore.Mvc.RazorPages;
using Syncfusion.EJ2.HeatMap;
using System.Collections.Generic;
namespace YourApplication.Pages
{
public class IndexModel : PageModel
{
public List<HeatMapDataPoint> DataSource { get; set; } = new List<HeatMapDataPoint>();
public string[] XAxisLabels { get; set; } =
{
"Jan", "Feb", "Mar", "Apr", "May"
};
public string[] YAxisLabels { get; set; } =
{
"Product A", "Product B", "Product C", "Product D", "Product E"
};
public HeatMapFont TitleTextStyle { get; set; } = new HeatMapFont
{
Size = "15px",
FontWeight = "500",
FontStyle = "Normal",
FontFamily = "Segoe UI"
};
public HeatMapFont CellTextStyle { get; set; } = new HeatMapFont
{
FontFamily = "Segoe UI",
Size = "12px",
FontWeight = "400"
};
public HeatMapFont TooltipTextStyle { get; set; } = new HeatMapFont
{
Color = "#FFFFFF",
FontFamily = "Segoe UI"
};
public List<HeatMapPalette> Palette { get; set; } = new List<HeatMapPalette>
{
new HeatMapPalette { Value = 0, Color = "#C2E7EC", Label = "Very Low" },
new HeatMapPalette { Value = 25, Color = "#AED6DC", Label = "Low" },
new HeatMapPalette { Value = 50, Color = "#87C1C9", Label = "Medium" },
new HeatMapPalette { Value = 75, Color = "#4CA3AF", Label = "High" },
new HeatMapPalette { Value = 100, Color = "#1B7280", Label = "Very High" }
};
public List<HeatMapPalette> FixedPalette { get; set; } = new List<HeatMapPalette>
{
new HeatMapPalette { Value = 0, Color = "#DFF6DD", Label = "Low" },
new HeatMapPalette { Value = 50, Color = "#FFF4CE", Label = "Medium" },
new HeatMapPalette { Value = 80, Color = "#FDE7E9", Label = "High" }
};
public void OnGet()
{
DataSource = new List<HeatMapDataPoint>
{
new HeatMapDataPoint { XValue = "Jan", YValue = "Product A", Value = 73 },
new HeatMapDataPoint { XValue = "Feb", YValue = "Product A", Value = 39 },
new HeatMapDataPoint { XValue = "Mar", YValue = "Product A", Value = 26 },
new HeatMapDataPoint { XValue = "Apr", YValue = "Product A", Value = 39 },
new HeatMapDataPoint { XValue = "May", YValue = "Product A", Value = 94 },
new HeatMapDataPoint { XValue = "Jan", YValue = "Product B", Value = 93 },
new HeatMapDataPoint { XValue = "Feb", YValue = "Product B", Value = 58 },
new HeatMapDataPoint { XValue = "Mar", YValue = "Product B", Value = 53 },
new HeatMapDataPoint { XValue = "Apr", YValue = "Product B", Value = 38 },
new HeatMapDataPoint { XValue = "May", YValue = "Product B", Value = 26 },
new HeatMapDataPoint { XValue = "Jan", YValue = "Product C", Value = 99 },
new HeatMapDataPoint { XValue = "Feb", YValue = "Product C", Value = 28 },
new HeatMapDataPoint { XValue = "Mar", YValue = "Product C", Value = 22 },
new HeatMapDataPoint { XValue = "Apr", YValue = "Product C", Value = 4 },
new HeatMapDataPoint { XValue = "May", YValue = "Product C", Value = 66 },
new HeatMapDataPoint { XValue = "Jan", YValue = "Product D", Value = 14 },
new HeatMapDataPoint { XValue = "Feb", YValue = "Product D", Value = 26 },
new HeatMapDataPoint { XValue = "Mar", YValue = "Product D", Value = 97 },
new HeatMapDataPoint { XValue = "Apr", YValue = "Product D", Value = 69 },
new HeatMapDataPoint { XValue = "May", YValue = "Product D", Value = 69 },
new HeatMapDataPoint { XValue = "Jan", YValue = "Product E", Value = 7 },
new HeatMapDataPoint { XValue = "Feb", YValue = "Product E", Value = 46 },
new HeatMapDataPoint { XValue = "Mar", YValue = "Product E", Value = 47 },
new HeatMapDataPoint { XValue = "Apr", YValue = "Product E", Value = 47 },
new HeatMapDataPoint { XValue = "May", YValue = "Product E", Value = 88 }
};
}
}
public class HeatMapDataPoint
{
public string XValue { get; set; } = string.Empty;
public string YValue { get; set; } = string.Empty;
public double Value { get; set; }
}
}
Use category axes when displaying named row and column headers such as months, products, teams, regions, or departments.
Recommended usage:
valueType="Category" for the required axis.Index.cshtml.cs as string[].Index.cshtml using @Model.XAxisLabels and @Model.YAxisLabels.Example configuration in Index.cshtml:
<e-heatmap-xaxis
valueType="Category"
labels="@Model.XAxisLabels">
</e-heatmap-xaxis>
<e-heatmap-yaxis
valueType="Category"
labels="@Model.YAxisLabels">
</e-heatmap-yaxis>
Example configuration in Index.cshtml.cs:
public string[] XAxisLabels { get; set; } =
{
"Jan", "Feb", "Mar", "Apr", "May"
};
public string[] YAxisLabels { get; set; } =
{
"Product A", "Product B", "Product C", "Product D", "Product E"
};
Use gradient color mapping when values are continuous and should be interpolated between multiple color stops.
Recommended usage:
type="Gradient" in paletteSettings.List<HeatMapPalette> in Index.cshtml.cs.Example configuration in Index.cshtml:
<e-heatmap-palettesettings
type="Gradient"
palette="@Model.Palette">
</e-heatmap-palettesettings>
Example configuration in Index.cshtml.cs:
public List<HeatMapPalette> Palette { get; set; } = new List<HeatMapPalette>
{
new HeatMapPalette { Value = 0, Color = "#C2E7EC", Label = "Very Low" },
new HeatMapPalette { Value = 25, Color = "#AED6DC", Label = "Low" },
new HeatMapPalette { Value = 50, Color = "#87C1C9", Label = "Medium" },
new HeatMapPalette { Value = 75, Color = "#4CA3AF", Label = "High" },
new HeatMapPalette { Value = 100, Color = "#1B7280", Label = "Very High" }
};
Use fixed palette mapping when values represent discrete ranges, statuses, or classification levels.
Recommended usage:
type="Fixed" in paletteSettings.List<HeatMapPalette> in Index.cshtml.cs.Yes, the following snippet will work only if FixedPalette exists in Index.cshtml.cs and the snippet is pasted as real tags in a .cshtml file.
Correct usage in Index.cshtml:
<e-heatmap-palettesettings
type="Fixed"
palette="@Model.FixedPalette">
</e-heatmap-palettesettings>
Do not paste the encoded version below into the actual .cshtml file:
<e-heatmap-palettesettings
type="Fixed"
palette="@Model.FixedPalette">
</e-heatmap-palettesettings>
Required property in Index.cshtml.cs:
public List<HeatMapPalette> FixedPalette { get; set; } = new List<HeatMapPalette>
{
new HeatMapPalette { Value = 0, Color = "#DFF6DD", Label = "Low" },
new HeatMapPalette { Value = 50, Color = "#FFF4CE", Label = "Medium" },
new HeatMapPalette { Value = 80, Color = "#FDE7E9", Label = "High" }
};
If you want to use the fixed palette in the main quick start sample, replace this block:
<e-heatmap-palettesettings
type="Gradient"
palette="@Model.Palette">
</e-heatmap-palettesettings>
with this block:
<e-heatmap-palettesettings
type="Fixed"
palette="@Model.FixedPalette">
</e-heatmap-palettesettings>
Use responsive rendering practices when working with medium or large datasets.
Recommended usage:
renderingMode="SVG" for smaller datasets.renderingMode="Canvas" for large datasets.renderingMode="Auto" when the component should determine the suitable rendering mode.Example configuration in Index.cshtml:
<ejs-heatmap
id="heatmap"
dataSource="@Model.DataSource"
renderingMode="Auto">
<e-heatmap-cellsettings
showLabel="false">
</e-heatmap-cellsettings>
</ejs-heatmap>
dataSource: Assigns the data collection to the HeatMap.xAxis.valueType: Defines the X-axis value type. Common values are Category, Numeric, and DateTime.yAxis.valueType: Defines the Y-axis value type. Common values are Category, Numeric, and DateTime.dataSourceSettings: Required when using JSON-style object mapping.dataSourceSettings.isJsonData: Set this to true when binding object collections.dataSourceSettings.adaptorType: Use Cell for cell-based records.dataSourceSettings.xDataMapping: Maps the X value field.dataSourceSettings.yDataMapping: Maps the Y value field.dataSourceSettings.valueMapping: Maps the cell value field.cellSettings.showLabel: Displays values inside cells.cellSettings.format: Formats the displayed cell value.cellSettings.textStyle: Customizes label font style.cellSettings.tileType: Defines the tile type, such as rectangular cell or bubble cell.backgroundColor: Defines the HeatMap background color.margin: Defines spacing around the HeatMap.titleSettings.text: Defines the HeatMap title.titleSettings.textStyle: Defines the title font style.height: Defines the component height.width: Defines the component width.legendSettings.visible: Shows or hides the legend.legendSettings.position: Defines the legend position.legendSettings.type: Defines the legend type.legendSettings.showLabel: Shows or hides legend labels.legendSettings.height: Defines legend height.legendSettings.width: Defines legend width.legendSettings.toggleVisibility: Enables legend-based visibility toggling when applicable.paletteSettings.type: Defines palette behavior. Common values are Gradient and Fixed.paletteSettings.palette: Assigns the strongly typed List<HeatMapPalette>.HeatMapPalette.Value: Defines the value threshold.HeatMapPalette.Color: Defines the color for the threshold.HeatMapPalette.Label: Defines the label for the palette item.references/advanced-scenarios.md (opens in a new tab)references/api-reference.md (opens in a new tab)references/appearance-styling.md (opens in a new tab)references/axis-configuration.md (opens in a new tab)references/bubble-heatmap.md (opens in a new tab)references/data-binding-rendering.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/legend-palette.md (opens in a new tab)references/tooltips-selection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
66 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-npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-aspnet-coreOther plugins' skills for the same job