ChartCalendarOptions
ChartForgeX.Core
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.
Returned or exposed by 13
- Extension method ChartCalendarOptions.CellSize
- Extension method ChartCalendarOptions.DayNames
- Extension method ChartCalendarOptions.FirstDayOfWeek
- Extension method ChartCalendarOptions.Gap
- Extension method ChartCalendarOptions.MaximumCellSize
- Extension method ChartCalendarOptions.MonthNames
- Method ChartCalendarOptionsFluent.CellSize
- Method ChartCalendarOptionsFluent.DayNames
- Method ChartCalendarOptionsFluent.FirstDayOfWeek
- Method ChartCalendarOptionsFluent.Gap
- Method ChartCalendarOptionsFluent.MaximumCellSize
- Method ChartCalendarOptionsFluent.MonthNames
- Property ChartOptions.Calendar
Accepted by parameters 20
- Extension method Chart.Calendar
- Extension method Chart.Calendar
- Extension method ChartCalendarOptions.CellSize
- Extension method ChartCalendarOptions.DayNames
- Extension method ChartCalendarOptions.FirstDayOfWeek
- Extension method ChartCalendarOptions.Gap
- Extension method ChartCalendarOptions.MaximumCellSize
- Extension method ChartCalendarOptions.MonthNames
- Method ChartCalendarOptionsFluent.CellSize
- Method ChartCalendarOptionsFluent.DayNames
- Method ChartCalendarOptionsFluent.FirstDayOfWeek
- Method ChartCalendarOptionsFluent.Gap
- Method ChartCalendarOptionsFluent.MaximumCellSize
- Method ChartCalendarOptionsFluent.MonthNames
- Method ChartFluent.Calendar
- Method ChartFluent.Calendar
- Extension method ChartOptions.Calendar
- Extension method ChartOptions.Calendar
- Method ChartOptionsFluent.Calendar
- Method ChartOptionsFluent.Calendar
Constructors
public ChartCalendarOptions() #Inherited Methods
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
- The instance.
- value double?
- The value.
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
- The instance.
- value System.Collections.Generic.IReadOnlyList<string>?
- The value.
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
- The instance.
- value System.DayOfWeek
- The value.
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
- The instance.
- value double?
- The value.
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
- The instance.
- value double?
- The value.
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
- The instance.
- value System.Collections.Generic.IReadOnlyList<string>?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartCalendarOptions { MonthNames = value }; chartCalendarOptions.MonthNames(value);