Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HeatmapControl.Diagram Property

Gets or sets the Heatmap Control’s diagram.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v24.2.UI.dll

NuGet Package: DevExpress.Win.Charts

#Declaration

public HeatmapDiagram Diagram { get; }

#Property Value

Type Description
HeatmapDiagram

Contains diagram options.

#Remarks

A diagram is the Heatmap Control’s area that is used to draw heatmap cells.

The following images show the heatmap diagram with different appearance settings:

A diagram with default settings:
A heatmap diagram with default settings
A diagram’s BackColor=LightGray; BorderColor=Gray:
A heatmap diagram with default settings
using DevExpress.XtraCharts;
using DevExpress.XtraCharts.Heatmap;
using System.Drawing;

namespace HeatmapChartApp {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
            //...
            heatmap.Diagram.BorderVisible = true;
            heatmap.Diagram.BorderColor = Color.Gray;
            heatmap.Diagram.BackColor = Color.LightGray;
        }
    }
}
See Also