FlexChart | ComponentOne
C1.Win.FlexChart.Extended.8 Assembly / C1.Win.Chart.Extended 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 Class
    Syntax
    'Declaration
     
    Public Class Heatmap 
       Inherits C1.Win.Chart.Series
    public class Heatmap : C1.Win.Chart.Series 
    Remarks
    The heatmap series can use DataTable as data source. You can specify the list of column names (comma-separated) in BindingX property. If BindingX is not set the heatmap uses data from all columns with double data type.
    Example
    The following code creates heatmap series and add it to the chart.
    var hmap = new Heatmap();
    hmap.DataSource = 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.DataSource = new string[] {"Q1", "Q2", "Q3", "Q4" };
    chart.AxisY.DataSource = new string[] { "Region 1", "Region 2" };
    Inheritance Hierarchy

    System.Object
       C1.Chart.SeriesBase
          C1.Win.Chart.Series
             C1.Win.Chart.Extended.Heatmap

    See Also