The ASP.NET Core HeatMap Chart is a graphical representation of two-dimensional data where values are represented with gradient or solid color variations. The data points are rendered as HeatMap cells using Scalable Vector Graphics (SVG) or canvas UI rendering.
Though the ASP.NET Core HeatMap chart can render data points using both SVG and canvas modes, it uses canvas rendering mode while displaying large volumes of data for the best initial load performance and optimized memory usage.
The HeatMap Chart can be bound to data using JSON or an array of objects. JSON data can be local or remote, and it can be retrieved using different adaptors. The JSON data can be nested as well.
In the HeatMap Chart, the cell selection is used to select single or multiple cells at runtime. The selected cell details are obtained via the built-in event and can be used for external processing.
The ASP.NET Core bubble HeatMap Chart or the matrix bubble chart, visualizes data using variations in bubble attributes such as size, color, and sector.
The ASP.NET Core calendar HeatMap visualizes time series data with each data point representing a value bound to a specific time.
Populate data in the ASP.NET Core HeatMap Chart using different axis types: numeric, category, and date-time.
Use a numeric axis to represent numeric data in a HeatMap.
Use a date-time axis to represent time series data in a HeatMap. Similarly, display dates and times as axis labels with different formats.
Use a category axis to represent non-numerical data in a HeatMap and display text labels instead of numbers.
The ASP.NET Core HeatMap Chart allows you to customize axis elements to make an axis more readable.
Achieve RTL layout by reversing the axis labels. This swaps the higher and lower ranges of an axis.
Arrange the axes smartly by moving them to positions opposite to their default positions.
Set axis labels with regular intervals, hiding adjacent labels across all types of axes.
Rotate axis labels clockwise or counterclockwise to any desired angle.
Customize the axis label text using the available formatting options.
Customize the default appearance of a cell or data point using the available formatting options.
Toggle visibility or format the data labels to display custom text along with the cell values.
Change the borders and cell spacing by customizing the border settings.
Customize the default color settings of the HeatMap cells with gradient or solid custom colors.
Color ranges allow a color to be applied to specific ranges in heatmap cells.
Display additional information about data points in the ASP.NET CORE HeatMap Chart using a legend.
Choose between a gradient pointer and a list-type legend for improving data points readability.
Place the legend anywhere in the chart area to make it fit best on a page.
The control enables paging when legend items exceed the bounds. Then, each legend item can be viewed by navigating between the pages.
A legend title provides information about the heatmap legend.
Handle missed or undefined data values with empty data points.
Display additional information for the data points with tooltips on mouse hover.
The HeatMap Chart is also available in Blazor, Angular, React, Vue, and JavaScript frameworks. Check out the different HeatMap Chart platforms from the links below,
Easily get started with the ASP.NET Core HeatMap Chart using a few simple lines of CSHTML and C# code, as demonstrated below. Also explore our ASP.NET Core HeatMap Chart Example that shows you how to render and configure the HeatMap Chart in ASP.NET Core.
<div>
<ejs-heatmap id='container' dataSource="ViewBag.dataSource">
<e-heatmap-titlesettings text="Sales Revenue per Employee (in 1000 US$)">
</e-heatmap-titlesettings>
<e-heatmap-xaxis labels="ViewBag.xlabels">
</e-heatmap-xaxis>
<e-heatmap-yaxis labels="ViewBag.yLabels">
</e-heatmap-yaxis>
</ejs-heatmap>
</div>
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace ApplicationName.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
string[] xlabels = new string[12] { "Nancy", "Andrew", "Janet", "Margaret", "Steven", "Michael", "Robert", "Laura", "Anne", "Paul", "Karin", "Mario" };
ViewBag.xLabels = xlabels;
string[] yLabels = new string[6] { "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat" };
ViewBag.yLabels = yLabels;
ViewBag.dataSource = GetDataSource();
return View();
}
private int[,] GetDataSource()
{
int[,] data = new int[,]
{
{73, 39, 26, 39, 94, 0},
{93, 58, 53, 38, 26, 68},
{99, 28, 22, 4, 66, 90},
{14, 26, 97, 69, 69, 3},
{7, 46, 47, 47, 88, 6},
{41, 55, 73, 23, 3, 79},
{56, 69, 21, 86, 3, 33},
{45, 7, 53, 81, 95, 79},
{60, 77, 74, 68, 88, 51},
{25, 25, 10, 12, 78, 14},
{25, 56, 55, 58, 12, 82},
{74, 33, 88, 23, 86, 59}
};
return data;
}
}
}
The HeatMap Chart in ASP.NET Core Syncfusion provides the following features:
You can find our ASP.NET Core HeatMap Chart demo, which demonstrates how to render and configure the HeatMap Chart.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.