# ChartHeatmapCell

Represents one categorical heatmap cell: a state key resolved through ChartStateTimelineOptions.Categories, optional short text drawn in the cell, an optional…

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

Represents one categorical heatmap cell: a state key resolved through [ChartStateTimelineOptions.Categories](/api/chartforgex-core-chartstatetimelineoptions/), optional short text drawn in the cell, an optional tooltip, and an optional link.

## Inheritance

- ValueType
- ChartHeatmapCell

## 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 [ChartHeatmapCell.WithMarkOptions](/api/chartforgex-core-chartheatmapcell/#method-withmarkoptions-chartforgex-core-chartmarkoptions)
- Property [ChartSeries.HeatmapCells](/api/chartforgex-core-chartseries/#property-heatmapcells)

### Accepted by parameters 4

- Method [Chart.AddHeatmapCategoryRow](/api/chartforgex-core-chart/#method-addheatmapcategoryrow-string-collections-generic-ienumerable-system-nullable-chartforgex-core-chartheatmapcell-string-nullable-chartforgex-core-chartseriesid) parameter `cells`
- Method [ChartSeries.CreateHeatmapCategoryRow](/api/chartforgex-core-chartseries/#method-createheatmapcategoryrow-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-system-nullable-chartforgex-core-chartheatmapcell-string) parameter `cells`
- Method [ChartSeries.ReplaceHeatmapCells](/api/chartforgex-core-chartseries/#method-replaceheatmapcells-collections-generic-ienumerable-system-nullable-chartforgex-core-chartheatmapcell) parameter `values`
- Method [ChartSeries.UpdateHeatmapCell](/api/chartforgex-core-chartseries/#method-updateheatmapcell-int32-nullable-chartforgex-core-chartheatmapcell) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartHeatmapCell(string state, string? text = null, string? tooltip = null, string? href = null)` [#](#constructor-ctor-string-string-string-string) 

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

Initializes a categorical heatmap cell.

Parameters

**state string required**

The state key, for example pass or critical.

**text string? = null optional**

Optional short text drawn inside the cell, for example a count.

**tooltip string? = null optional**

Optional tooltip text, appended to the accessible name and hover text of the cell, which always name the row, column, and state (row, column: state. tooltip).

**href string? = null optional**

Optional link opened from the cell in SVG and HTML output. Relative, fragment, http, https, and mailto links are accepted; other schemes such as javascript: are rejected.

## Methods

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

[ChartHeatmapCell.cs:44](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHeatmapCell.cs#L44)

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

 `ChartHeatmapCell` 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 string State { get; }` [#](#property-state) 

[ChartHeatmapCell.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHeatmapCell.cs#L27)

Gets the state key.

 `public string? Text { get; }` [#](#property-text) 

[ChartHeatmapCell.cs:30](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHeatmapCell.cs#L30)

Gets optional short text drawn inside the cell.

 `public string? Tooltip { get; }` [#](#property-tooltip) 

[ChartHeatmapCell.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHeatmapCell.cs#L33)

Gets optional tooltip text.

 `public string? Href { get; }` [#](#property-href) 

[ChartHeatmapCell.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHeatmapCell.cs#L36)

Gets the optional link target.

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

[ChartHeatmapCell.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartHeatmapCell.cs#L39)

Gets optional immutable navigation, accessibility and host metadata.

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