# ChartCalendarHeatmapItem

Represents one dated value in a calendar heatmap chart.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartCalendarHeatmapItem.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L32)

**Base**

`ValueType`

**Modifiers**

sealed

Represents one dated value in a calendar heatmap chart.

## Inheritance

- ValueType
- ChartCalendarHeatmapItem

## Usage

 Explore 6 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 2

- Method [ChartCalendarHeatmapItem.WithMarkOptions](/api/chartforgex-core-chartcalendarheatmapitem/#method-withmarkoptions-chartforgex-core-chartmarkoptions)
- Property [ChartSeries.CalendarItems](/api/chartforgex-core-chartseries/#property-calendaritems)

### Accepted by parameters 4

- Method [Chart.AddCalendarHeatmap](/api/chartforgex-core-chart/#method-addcalendarheatmap-string-collections-generic-ienumerable-chartforgex-core-chartcalendarheatmapitem-nullable-chartforgex-primitives-chartcolor-nullable-chartforgex-core-chartseriesid) parameter `items`
- Method [ChartSeries.CreateCalendarHeatmap](/api/chartforgex-core-chartseries/#method-createcalendarheatmap-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartcalendarheatmapitem-nullable-chartforgex-primitives-chartcolor) parameter `items`
- Method [ChartSeries.ReplaceCalendarItems](/api/chartforgex-core-chartseries/#method-replacecalendaritems-collections-generic-ienumerable-chartforgex-core-chartcalendarheatmapitem) parameter `values`
- Method [ChartSeries.UpdateCalendarItem](/api/chartforgex-core-chartseries/#method-updatecalendaritem-int32-chartforgex-core-chartcalendarheatmapitem) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartCalendarHeatmapItem(DateTime date, double value, ChartColor? color = null)` [#](#constructor-ctor-datetime-double-nullable-chartforgex-primitives-chartcolor) 

[ChartCalendarHeatmapItem.cs:32](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L32)

Initializes a new instance of the [ChartCalendarHeatmapItem](/api/chartforgex-core-chartcalendarheatmapitem/) struct.

Parameters

**date System.DateTime required**

The calendar date. The time component is ignored.

**value double required**

The day value. Negative values are not allowed.

**color ChartForgeX.Primitives.ChartColor? = null optional**

An optional color for this day.

## Methods

 `public ChartCalendarHeatmapItem WithMarkOptions(ChartMarkOptions? options)` [#](#method-withmarkoptions-chartforgex-core-chartmarkoptions) 

[ChartCalendarHeatmapItem.cs:46](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L46)

Returns a copy with replacement mark metadata, retaining all authored values.

Parameters

**options ChartForgeX.Core.ChartMarkOptions? required**

Immutable metadata, or null to clear it.

Returns

 `ChartCalendarHeatmapItem` A new observation. The current observation is unchanged. 

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from ValueType

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public ChartMarkOptions? MarkOptions { get; }` [#](#property-markoptions) 

[ChartCalendarHeatmapItem.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L41)

Gets optional immutable navigation, accessibility and host metadata.

## Fields

 `public readonly DateTime Date` [#](#field-date) 

[ChartCalendarHeatmapItem.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L13)

Gets the calendar date.

 `public readonly double Value` [#](#field-value) 

[ChartCalendarHeatmapItem.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L18)

Gets the day value.

 `public readonly ChartColor? Color` [#](#field-color) 

[ChartCalendarHeatmapItem.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartCalendarHeatmapItem.cs#L23)

Gets the optional day color.

<!-- PowerForge markdown artifact sha256:CED158A8C5E7DC6A9F9860BE6D67E560139D4BA34B87C8EAE1EEFE45D5784EE1 -->
