Skip to content
ChartForgeX
Class

ChartHeatmapOptions

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

Heatmap scales, cells and labels. Configure it through ChartOptions.Heatmap.

Inheritance

  • object
  • ChartHeatmapOptions

Usage

Explore 57 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 32

Constructors

public ChartHeatmapOptions() #

Properties

public ChartColorDimensionOptions ColorDimension { get; set; } #

Gets the name and number display policy for numeric rectangular, hexagonal and calendar heatmap measurements.

public ChartHeatmapScale Scale { get; set; } #

Gets or sets how heatmap values are converted into cell colors.

public bool NaturalHeight { get; set; } #

Gets or sets whether rectangular heatmaps may grow beyond the requested frame to fit readable rows.

public ChartHeatmapColumnWindow ColumnWindow { get; set; } #

Gets or sets the policy for rectangular heatmap columns that do not fit at a readable width.

public bool ShowCategoryLegend { get; set; } #

Gets or sets whether categorical heatmap state keys are rendered when the chart legend is enabled. Numeric keys use HeatmapColorDimension.ShowLegend.

public bool ShowColumnLabels { get; set; } #

Gets or sets a value indicating whether heatmap column labels are rendered.

public bool ShowScaleStepLabels { get; set; } #

Gets or sets whether numeric heatmap keys add automatic intermediate step labels where they fit. Authored scale captions remain authoritative. Default: true.

public ChartColorScale? ColorScale { get; set; } #

Gets or sets the numeric color scale shared by rectangular, hexagonal and calendar heatmaps. Null retains the family's default coloring. A scale uses all observed values, including zero, unless its range is fixed; explicit cell colors take precedence. Categorical matrices do not support a numeric scale.

public double? CellGap { get; set; } #

Gets or sets an optional heatmap cell gap in pixels.

public double? CellRadius { get; set; } #

Gets or sets an optional heatmap cell corner radius in pixels.

public ChartHeatmapValueTextMode ValueTextMode { get; set; } #

Gets or sets when heatmap cell values are rendered as text.

public bool RelativeScale { get; set; } #

Gets or sets a value indicating whether heatmap intensity is relative to the observed value range (from zero for non-negative data). By default, heatmaps whose values all fall between 0 and 100 are read as percentages; enable this for counts and other magnitudes. Chart.AddHourWeekdayHeatmap enables it. Relative heatmaps are drawn with the neutral sequential scale; combining this with ChartHeatmapScale.Semantic is rejected unless ChartHeatmapOptions.ColorScale supplies the coloring instead.

Extension Methods

public static ChartHeatmapOptions CellGap(ChartHeatmapOptions chartHeatmapOptions, double? value) #

Sets ChartHeatmapOptions.CellGap: Gets or sets an optional heatmap cell gap in pixels.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value double? required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { CellGap = value };    chartHeatmapOptions.CellGap(value);
public static ChartHeatmapOptions CellRadius(ChartHeatmapOptions chartHeatmapOptions, double? value) #

Sets ChartHeatmapOptions.CellRadius: Gets or sets an optional heatmap cell corner radius in pixels.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value double? required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { CellRadius = value };    chartHeatmapOptions.CellRadius(value);
ColorDimension 2 overloads
public static ChartHeatmapOptions ColorDimension(ChartHeatmapOptions chartHeatmapOptions, ChartColorDimensionOptions value) #

Sets ChartHeatmapOptions.ColorDimension: Gets the name and number display policy for numeric rectangular, hexagonal and calendar heatmap measurements.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value ChartForgeX.Core.ChartColorDimensionOptions required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ColorDimension = value };    chartHeatmapOptions.ColorDimension(value);
public static ChartHeatmapOptions ColorDimension(ChartHeatmapOptions chartHeatmapOptions, Action<ChartColorDimensionOptions> configure) #

Configures a copy of ChartHeatmapOptions.ColorDimension (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets the name and number display policy for numeric rectangular, hexagonal and calendar heatmap measurements.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
configure System.Action<ChartForgeX.Core.ChartColorDimensionOptions> required
Configures the copy.

Returns

ChartHeatmapOptions The same instance.
public static ChartHeatmapOptions ColorScale(ChartHeatmapOptions chartHeatmapOptions, ChartColorScale? value) #

Sets ChartHeatmapOptions.ColorScale: Gets or sets the numeric color scale shared by rectangular, hexagonal and calendar heatmaps. Null retains the family's default coloring. A scale uses all observed values, including zero, unless its range is fixed; explicit cell colors take precedence. Categorical matrices do not support a numeric scale.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value ChartForgeX.Core.ChartColorScale? required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ColorScale = value };    chartHeatmapOptions.ColorScale(value);
public static ChartHeatmapOptions ColumnWindow(ChartHeatmapOptions chartHeatmapOptions, ChartHeatmapColumnWindow value) #

Sets ChartHeatmapOptions.ColumnWindow: Gets or sets the policy for rectangular heatmap columns that do not fit at a readable width.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value ChartForgeX.Core.ChartHeatmapColumnWindow required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ColumnWindow = value };    chartHeatmapOptions.ColumnWindow(value);
public static ChartHeatmapOptions NaturalHeight(ChartHeatmapOptions chartHeatmapOptions, bool value = true) #

Sets ChartHeatmapOptions.NaturalHeight: Gets or sets whether rectangular heatmaps may grow beyond the requested frame to fit readable rows.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { NaturalHeight = value };    chartHeatmapOptions.NaturalHeight(value);
public static ChartHeatmapOptions RelativeScale(ChartHeatmapOptions chartHeatmapOptions, bool value = true) #

Sets ChartHeatmapOptions.RelativeScale: Gets or sets a value indicating whether heatmap intensity is relative to the observed value range (from zero for non-negative data). By default, heatmaps whose values all fall between 0 and 100 are read as percentages; enable this for counts and other magnitudes. Chart.AddHourWeekdayHeatmap enables it. Relative heatmaps are drawn with the neutral sequential scale; combining this with ChartHeatmapScale.Semantic is rejected unless ChartHeatmapOptions.ColorScale supplies the coloring instead.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { RelativeScale = value };    chartHeatmapOptions.RelativeScale(value);
public static ChartHeatmapOptions Scale(ChartHeatmapOptions chartHeatmapOptions, ChartHeatmapScale value) #

Sets ChartHeatmapOptions.Scale: Gets or sets how heatmap values are converted into cell colors.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value ChartForgeX.Core.ChartHeatmapScale required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { Scale = value };    chartHeatmapOptions.Scale(value);
public static ChartHeatmapOptions ShowCategoryLegend(ChartHeatmapOptions chartHeatmapOptions, bool value = true) #

Sets ChartHeatmapOptions.ShowCategoryLegend: Gets or sets whether categorical heatmap state keys are rendered when the chart legend is enabled. Numeric keys use HeatmapColorDimension.ShowLegend.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ShowCategoryLegend = value };    chartHeatmapOptions.ShowCategoryLegend(value);
public static ChartHeatmapOptions ShowColumnLabels(ChartHeatmapOptions chartHeatmapOptions, bool value = true) #

Sets ChartHeatmapOptions.ShowColumnLabels: Gets or sets a value indicating whether heatmap column labels are rendered.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ShowColumnLabels = value };    chartHeatmapOptions.ShowColumnLabels(value);
public static ChartHeatmapOptions ShowScaleStepLabels(ChartHeatmapOptions chartHeatmapOptions, bool value = true) #

Sets ChartHeatmapOptions.ShowScaleStepLabels: Gets or sets whether numeric heatmap keys add automatic intermediate step labels where they fit. Authored scale captions remain authoritative. Default: true.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                        // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ShowScaleStepLabels = value };    chartHeatmapOptions.ShowScaleStepLabels(value);
public static ChartHeatmapOptions ValueTextMode(ChartHeatmapOptions chartHeatmapOptions, ChartHeatmapValueTextMode value) #

Sets ChartHeatmapOptions.ValueTextMode: Gets or sets when heatmap cell values are rendered as text.

Parameters

chartHeatmapOptions ChartForgeX.Core.ChartHeatmapOptions required
The instance.
value ChartForgeX.Core.ChartHeatmapValueTextMode required
The value.

Returns

ChartHeatmapOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Core.ChartHeatmapOptions { ValueTextMode = value };    chartHeatmapOptions.ValueTextMode(value);