Skip to content
ChartForgeX
Class

ChartCalendarOptions

ChartForgeX.Core

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

Controls the week layout, localized names, and cell sizing of calendar heatmaps in a chart.

Inheritance

  • object
  • ChartCalendarOptions

Usage

Explore 33 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 20

Constructors

public ChartCalendarOptions() #

Properties

public DayOfWeek FirstDayOfWeek { get; set; } #

Gets or sets the weekday in the top row. Weeks begin on this day. Default: Sunday.

public IReadOnlyList<string>? DayNames { get; set; } #

Gets or sets seven non-empty weekday names indexed by DayOfWeek, Sunday first. Null uses invariant abbreviations. Both assignment and retrieval copy the names.

public IReadOnlyList<string>? MonthNames { get; set; } #

Gets or sets twelve non-empty month names, January first. Null uses invariant abbreviations. Both assignment and retrieval copy the names.

public double? CellSize { get; set; } #

Gets or sets a preferred cell size in pixels, between two and two hundred. Cells shrink to fit the plot. Null fills the plot; a preferred size takes precedence over ChartCalendarOptions.MaximumCellSize.

public double? MaximumCellSize { get; set; } #

Gets or sets the largest size, in pixels, cells grow to when filling the plot. Null leaves them unlimited.

public double? Gap { get; set; } #

Gets or sets a cell gap from zero to twenty-four pixels. Null chooses 3.5 px, or 2.5 px above 32 weeks.

Extension Methods

public static ChartCalendarOptions CellSize(ChartCalendarOptions chartCalendarOptions, double? value) #

Sets ChartCalendarOptions.CellSize: Gets or sets a preferred cell size in pixels, between two and two hundred. Cells shrink to fit the plot. Null fills the plot; a preferred size takes precedence over ChartCalendarOptions.MaximumCellSize.

Parameters

chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required
The instance.
value double? required
The value.

Returns

ChartCalendarOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { CellSize = value };    chartCalendarOptions.CellSize(value);
public static ChartCalendarOptions DayNames(ChartCalendarOptions chartCalendarOptions, IReadOnlyList<string>? value) #

Sets ChartCalendarOptions.DayNames: Gets or sets seven non-empty weekday names indexed by DayOfWeek, Sunday first. Null uses invariant abbreviations. Both assignment and retrieval copy the names.

Parameters

chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required
The instance.
value System.Collections.Generic.IReadOnlyList<string>? required
The value.

Returns

ChartCalendarOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { DayNames = value };    chartCalendarOptions.DayNames(value);
public static ChartCalendarOptions FirstDayOfWeek(ChartCalendarOptions chartCalendarOptions, DayOfWeek value) #

Sets ChartCalendarOptions.FirstDayOfWeek: Gets or sets the weekday in the top row. Weeks begin on this day. Default: Sunday.

Parameters

chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required
The instance.
value System.DayOfWeek required
The value.

Returns

ChartCalendarOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { FirstDayOfWeek = value };    chartCalendarOptions.FirstDayOfWeek(value);
public static ChartCalendarOptions Gap(ChartCalendarOptions chartCalendarOptions, double? value) #

Sets ChartCalendarOptions.Gap: Gets or sets a cell gap from zero to twenty-four pixels. Null chooses 3.5 px, or 2.5 px above 32 weeks.

Parameters

chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required
The instance.
value double? required
The value.

Returns

ChartCalendarOptions The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { Gap = value };    chartCalendarOptions.Gap(value);
public static ChartCalendarOptions MaximumCellSize(ChartCalendarOptions chartCalendarOptions, double? value) #

Sets ChartCalendarOptions.MaximumCellSize: Gets or sets the largest size, in pixels, cells grow to when filling the plot. Null leaves them unlimited.

Parameters

chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required
The instance.
value double? required
The value.

Returns

ChartCalendarOptions The same instance.

Examples

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { MaximumCellSize = value };    chartCalendarOptions.MaximumCellSize(value);
public static ChartCalendarOptions MonthNames(ChartCalendarOptions chartCalendarOptions, IReadOnlyList<string>? value) #

Sets ChartCalendarOptions.MonthNames: Gets or sets twelve non-empty month names, January first. Null uses invariant abbreviations. Both assignment and retrieval copy the names.

Parameters

chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required
The instance.
value System.Collections.Generic.IReadOnlyList<string>? required
The value.

Returns

ChartCalendarOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { MonthNames = value };    chartCalendarOptions.MonthNames(value);