MAUI | ComponentOne
C1.Maui.Chart Assembly / C1.Maui.Chart Namespace / Heatmap Class
Members Example
In This Topic
    Heatmap Class
    In This Topic
    Represents heatmap series that displays 2D data array using color variations.
    Object Model
    Heatmap ClassFlexChart ClassChartStyle ClassAxis ClassAxis ClassDataLabel ClassChartStyle ClassChartStyle Class
    Syntax
    public class Heatmap : Series 
    Example
    The following code creates heatmap series and add it to the chart.
    var hmap = new Heatmap();
    hmap.ItemsSource = new double [,] { { 0, 0.5 }, {0.5, 1 }, { 1, 0.4 }, { 0.5, 1 } };
    hmap.ColorScale = new GradientColorScale() { Min = 0, Max = 1, Colors = new List<Color> { Color.White, Color.Red } };
    chart.Series.Add(hmap);
    chart.AxisX.ItemsSource = new string[] {"Q1", "Q2", "Q3", "Q4" };
    chart.AxisY.ItemsSource = new string[] { "Region 1", "Region 2" };
    Inheritance Hierarchy

    System.Object
       Microsoft.Maui.Controls.BindableObject
          C1.Maui.Chart.Series
             C1.Maui.Chart.Heatmap

    See Also