Skip to content

syncfusion/wpf-ui-components-skills / skills/syncfusion-wpf-heatmap

syncfusion-wpf-heatmap

Verified

Implement Syncfusion WPF Heat Map (SfHeatMap) control for matrix-based data visualization using color gradients. Use this when visualizing tabular data with color-coded cells, creating heat map charts, or displaying data density patterns. This skill covers data mapping, color palette configuration, legend customization, and cell label formatting for WPF applications.

FileKindSize
SKILL.mdskill md6.5 KB
references/color-mapping.mdmarkdown598 B
references/getting-started.mdmarkdown2.2 KB
references/items-mapping.mdmarkdown482 B
references/legend.mdmarkdown434 B
references/overview.mdmarkdown603 B

references/getting-started.md

View on GitHub
---
title: Getting Started with SfHeatMap (WPF)
---

# Getting Started

This reference provides a step-by-step quick start to initialize and populate `SfHeatMap`.

## Table of Contents
- Initialize
- Prepare data
- Populate data
- Map data (TableMapping example)
- Color mapping and legend
- Full example

## Initialize

Add `SfHeatMap` to a XAML page inside `Syncfusion.UI.Xaml.HeatMap` namespace.

Example XAML:

```xaml
<Window xmlns:syncfusion="http://schemas.syncfusion.com/wpf">
  <Grid>
    <syncfusion:SfHeatMap />
  </Grid>
</Window>
```

## Prepare data

Create a POCO and a collection. Example classes shown below.

```csharp
public class Product { public string ProductName { get; set; } public double Y2007 { get; set; } /* ... */ }
public class Products : ObservableCollection<Product> { }
```

## Populate data

Provide a sample collection as a resource with several `Product` items (see main example for full list).

## Map data (TableMapping)

Use `TableMapping` to map header and columns when each object holds multiple numeric properties.

```xaml
<syncfusion:TableMapping x:Key="itemsMapping">
  <syncfusion:TableMapping.HeaderMapping>
    <syncfusion:ColumnMapping PropertyName="ProductName" DisplayName="Product"/>
  </syncfusion:TableMapping.HeaderMapping>
  <syncfusion:TableMapping.ColumnMapping>
    <syncfusion:ColumnMapping PropertyName="Y2007" DisplayName="2007"/>
    <!-- more columns -->
  </syncfusion:TableMapping.ColumnMapping>
</syncfusion:TableMapping>

<syncfusion:SfHeatMap ItemsSource="{StaticResource productsData}" ItemsMapping="{StaticResource itemsMapping}" />
```

## Color mapping and legend

Define `ColorMappingCollection` and pass it to `SfHeatMap` and `SfHeatMapLegend`.

```xaml
<syncfusion:ColorMappingCollection x:Key="colorMapping">
  <syncfusion:ColorMapping Value="0" Color="#8ec8f8" />
  <syncfusion:ColorMapping Value="30" Color="#0d47a1" />
</syncfusion:ColorMappingCollection>

<syncfusion:SfHeatMap ColorMappingCollection="{StaticResource colorMapping}" />
<syncfusion:SfHeatMapLegend ColorMappingCollection="{StaticResource colorMapping}" />
```

## Full example

See the main `docs/Getting-Started.md` for a complete XAML and C# sample showing the `Products` collection, `TableMapping`, and `ColorMappingCollection`.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 470kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall