# ChartCalendarOptions

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

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartCalendarOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L19)

**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.

### Returned or exposed by 13

- Extension method [ChartCalendarOptions.CellSize](/api/chartforgex-core-chartcalendaroptions/#extension-cellsize-chartforgex-core-chartcalendaroptions-nullable-system-double)
- Extension method [ChartCalendarOptions.DayNames](/api/chartforgex-core-chartcalendaroptions/#extension-daynames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string)
- Extension method [ChartCalendarOptions.FirstDayOfWeek](/api/chartforgex-core-chartcalendaroptions/#extension-firstdayofweek-chartforgex-core-chartcalendaroptions-dayofweek)
- Extension method [ChartCalendarOptions.Gap](/api/chartforgex-core-chartcalendaroptions/#extension-gap-chartforgex-core-chartcalendaroptions-nullable-system-double)
- Extension method [ChartCalendarOptions.MaximumCellSize](/api/chartforgex-core-chartcalendaroptions/#extension-maximumcellsize-chartforgex-core-chartcalendaroptions-nullable-system-double)
- Extension method [ChartCalendarOptions.MonthNames](/api/chartforgex-core-chartcalendaroptions/#extension-monthnames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string)
- Method [ChartCalendarOptionsFluent.CellSize](/api/chartforgex-core-chartcalendaroptionsfluent/#method-cellsize-chartforgex-core-chartcalendaroptions-nullable-system-double)
- Method [ChartCalendarOptionsFluent.DayNames](/api/chartforgex-core-chartcalendaroptionsfluent/#method-daynames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string)
- Method [ChartCalendarOptionsFluent.FirstDayOfWeek](/api/chartforgex-core-chartcalendaroptionsfluent/#method-firstdayofweek-chartforgex-core-chartcalendaroptions-dayofweek)
- Method [ChartCalendarOptionsFluent.Gap](/api/chartforgex-core-chartcalendaroptionsfluent/#method-gap-chartforgex-core-chartcalendaroptions-nullable-system-double)
- Method [ChartCalendarOptionsFluent.MaximumCellSize](/api/chartforgex-core-chartcalendaroptionsfluent/#method-maximumcellsize-chartforgex-core-chartcalendaroptions-nullable-system-double)
- Method [ChartCalendarOptionsFluent.MonthNames](/api/chartforgex-core-chartcalendaroptionsfluent/#method-monthnames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string)
- Property [ChartOptions.Calendar](/api/chartforgex-core-chartoptions/#property-calendar)

### Accepted by parameters 20

- Extension method [Chart.Calendar](/api/chartforgex-core-chart/#extension-calendar-chartforgex-core-chart-action-chartforgex-core-chartcalendaroptions) parameter `configure`
- Extension method [Chart.Calendar](/api/chartforgex-core-chart/#extension-calendar-chartforgex-core-chart-chartforgex-core-chartcalendaroptions) parameter `value`
- Extension method [ChartCalendarOptions.CellSize](/api/chartforgex-core-chartcalendaroptions/#extension-cellsize-chartforgex-core-chartcalendaroptions-nullable-system-double) parameter `chartCalendarOptions`
- Extension method [ChartCalendarOptions.DayNames](/api/chartforgex-core-chartcalendaroptions/#extension-daynames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string) parameter `chartCalendarOptions`
- Extension method [ChartCalendarOptions.FirstDayOfWeek](/api/chartforgex-core-chartcalendaroptions/#extension-firstdayofweek-chartforgex-core-chartcalendaroptions-dayofweek) parameter `chartCalendarOptions`
- Extension method [ChartCalendarOptions.Gap](/api/chartforgex-core-chartcalendaroptions/#extension-gap-chartforgex-core-chartcalendaroptions-nullable-system-double) parameter `chartCalendarOptions`
- Extension method [ChartCalendarOptions.MaximumCellSize](/api/chartforgex-core-chartcalendaroptions/#extension-maximumcellsize-chartforgex-core-chartcalendaroptions-nullable-system-double) parameter `chartCalendarOptions`
- Extension method [ChartCalendarOptions.MonthNames](/api/chartforgex-core-chartcalendaroptions/#extension-monthnames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string) parameter `chartCalendarOptions`
- Method [ChartCalendarOptionsFluent.CellSize](/api/chartforgex-core-chartcalendaroptionsfluent/#method-cellsize-chartforgex-core-chartcalendaroptions-nullable-system-double) parameter `chartCalendarOptions`
- Method [ChartCalendarOptionsFluent.DayNames](/api/chartforgex-core-chartcalendaroptionsfluent/#method-daynames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string) parameter `chartCalendarOptions`
- Method [ChartCalendarOptionsFluent.FirstDayOfWeek](/api/chartforgex-core-chartcalendaroptionsfluent/#method-firstdayofweek-chartforgex-core-chartcalendaroptions-dayofweek) parameter `chartCalendarOptions`
- Method [ChartCalendarOptionsFluent.Gap](/api/chartforgex-core-chartcalendaroptionsfluent/#method-gap-chartforgex-core-chartcalendaroptions-nullable-system-double) parameter `chartCalendarOptions`
- Method [ChartCalendarOptionsFluent.MaximumCellSize](/api/chartforgex-core-chartcalendaroptionsfluent/#method-maximumcellsize-chartforgex-core-chartcalendaroptions-nullable-system-double) parameter `chartCalendarOptions`
- Method [ChartCalendarOptionsFluent.MonthNames](/api/chartforgex-core-chartcalendaroptionsfluent/#method-monthnames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string) parameter `chartCalendarOptions`
- Method [ChartFluent.Calendar](/api/chartforgex-core-chartfluent/#method-calendar-chartforgex-core-chart-action-chartforgex-core-chartcalendaroptions) parameter `configure`
- Method [ChartFluent.Calendar](/api/chartforgex-core-chartfluent/#method-calendar-chartforgex-core-chart-chartforgex-core-chartcalendaroptions) parameter `value`
- Extension method [ChartOptions.Calendar](/api/chartforgex-core-chartoptions/#extension-calendar-chartforgex-core-chartoptions-action-chartforgex-core-chartcalendaroptions) parameter `configure`
- Extension method [ChartOptions.Calendar](/api/chartforgex-core-chartoptions/#extension-calendar-chartforgex-core-chartoptions-chartforgex-core-chartcalendaroptions) parameter `value`
- Method [ChartOptionsFluent.Calendar](/api/chartforgex-core-chartoptionsfluent/#method-calendar-chartforgex-core-chartoptions-action-chartforgex-core-chartcalendaroptions) parameter `configure`
- Method [ChartOptionsFluent.Calendar](/api/chartforgex-core-chartoptionsfluent/#method-calendar-chartforgex-core-chartoptions-chartforgex-core-chartcalendaroptions) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartCalendarOptions()` [#](#constructor-ctor) 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public DayOfWeek FirstDayOfWeek { get; set; }` [#](#property-firstdayofweek) 

[ChartCalendarOptions.cs:19](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L19)

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

 `public IReadOnlyList<string>? DayNames { get; set; }` [#](#property-daynames) 

[ChartCalendarOptions.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L31)

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; }` [#](#property-monthnames) 

[ChartCalendarOptions.cs:40](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L40)

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; }` [#](#property-cellsize) 

[ChartCalendarOptions.cs:49](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L49)

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](/api/chartforgex-core-chartcalendaroptions/).

 `public double? MaximumCellSize { get; set; }` [#](#property-maximumcellsize) 

[ChartCalendarOptions.cs:55](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L55)

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

 `public double? Gap { get; set; }` [#](#property-gap) 

[ChartCalendarOptions.cs:61](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarOptions.cs#L61)

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)` [#](#extension-cellsize-chartforgex-core-chartcalendaroptions-nullable-system-double) 

Sets [ChartCalendarOptions.CellSize](/api/chartforgex-core-chartcalendaroptions/): 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](/api/chartforgex-core-chartcalendaroptions/).

Parameters

**chartCalendarOptions ChartForgeX.Core.ChartCalendarOptions required**

The instance.

**value double? required**

The value.

Returns

 `ChartCalendarOptions` The same instance. 

Examples

```csharp
// 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)` [#](#extension-daynames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string) 

Sets [ChartCalendarOptions.DayNames](/api/chartforgex-core-chartcalendaroptions/): 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

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

 `public static ChartCalendarOptions FirstDayOfWeek(ChartCalendarOptions chartCalendarOptions, DayOfWeek value)` [#](#extension-firstdayofweek-chartforgex-core-chartcalendaroptions-dayofweek) 

Sets [ChartCalendarOptions.FirstDayOfWeek](/api/chartforgex-core-chartcalendaroptions/): 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

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

 `public static ChartCalendarOptions Gap(ChartCalendarOptions chartCalendarOptions, double? value)` [#](#extension-gap-chartforgex-core-chartcalendaroptions-nullable-system-double) 

Sets [ChartCalendarOptions.Gap](/api/chartforgex-core-chartcalendaroptions/): 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

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

 `public static ChartCalendarOptions MaximumCellSize(ChartCalendarOptions chartCalendarOptions, double? value)` [#](#extension-maximumcellsize-chartforgex-core-chartcalendaroptions-nullable-system-double) 

Sets [ChartCalendarOptions.MaximumCellSize](/api/chartforgex-core-chartcalendaroptions/): 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

```csharp
// 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)` [#](#extension-monthnames-chartforgex-core-chartcalendaroptions-collections-generic-ireadonlylist-system-string) 

Sets [ChartCalendarOptions.MonthNames](/api/chartforgex-core-chartcalendaroptions/): 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

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

<!-- PowerForge markdown artifact sha256:33921EC2BCD4054B5CCC32A93208F42E6053AD5C82DAC93F7A8ED2F42221CFF0 -->
