Skip to main content
All docs
V24.1

HeatmapControl.Diagram Property

Gets or sets the Heatmap Control’s diagram.

Namespace: DevExpress.XtraCharts.Heatmap

Assembly: DevExpress.XtraCharts.v24.1.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