# ChartAxisLabel

Represents a display label for a numeric axis value.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartAxisLabel.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L34)

**Base**

`ValueType`

**Implements**

 `IEquatable<ChartAxisLabel>` 

**Modifiers**

sealed

Represents a display label for a numeric axis value.

## Inheritance

- ValueType
- ChartAxisLabel

## Usage

 Explore 14 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

- Property [ChartAxis.Labels](/api/chartforgex-core-chartaxis/#property-labels)
- Property [ChartGaugeOptions.TickLabels](/api/chartforgex-core-chartgaugeoptions/#property-ticklabels)

### Accepted by parameters 12

- Method [Chart.XLabels](/api/chartforgex-core-chart/#method-xlabels-collections-generic-ienumerable-chartforgex-core-chartaxislabel) parameter `labels`
- Extension method [ChartAxis.Label](/api/chartforgex-core-chartaxis/#extension-label-chartforgex-core-chartaxis-chartforgex-core-chartaxislabel) parameter `item`
- Extension method [ChartAxis.Labels](/api/chartforgex-core-chartaxis/#extension-labels-chartforgex-core-chartaxis-collections-generic-ienumerable-chartforgex-core-chartaxislabel) parameter `items`
- Method [ChartAxisFluent.Label](/api/chartforgex-core-chartaxisfluent/#method-label-chartforgex-core-chartaxis-chartforgex-core-chartaxislabel) parameter `item`
- Method [ChartAxisFluent.Labels](/api/chartforgex-core-chartaxisfluent/#method-labels-chartforgex-core-chartaxis-collections-generic-ienumerable-chartforgex-core-chartaxislabel) parameter `items`
- Method [ChartAxisLabel.Equals](/api/chartforgex-core-chartaxislabel/#method-equals-chartforgex-core-chartaxislabel) parameter `other`
- Method [ChartAxisLabel.op_Equality](/api/chartforgex-core-chartaxislabel/#method-op-equality-chartforgex-core-chartaxislabel-chartforgex-core-chartaxislabel) parameter `left`
- Method [ChartAxisLabel.op_Equality](/api/chartforgex-core-chartaxislabel/#method-op-equality-chartforgex-core-chartaxislabel-chartforgex-core-chartaxislabel) parameter `right`
- Method [ChartAxisLabel.op_Inequality](/api/chartforgex-core-chartaxislabel/#method-op-inequality-chartforgex-core-chartaxislabel-chartforgex-core-chartaxislabel) parameter `left`
- Method [ChartAxisLabel.op_Inequality](/api/chartforgex-core-chartaxislabel/#method-op-inequality-chartforgex-core-chartaxislabel-chartforgex-core-chartaxislabel) parameter `right`
- Extension method [ChartGaugeOptions.TickLabels](/api/chartforgex-core-chartgaugeoptions/#extension-ticklabels-chartforgex-core-chartgaugeoptions-collections-generic-ireadonlylist-chartforgex-core-chartaxislabel) parameter `value`
- Method [ChartGaugeOptionsFluent.TickLabels](/api/chartforgex-core-chartgaugeoptionsfluent/#method-ticklabels-chartforgex-core-chartgaugeoptions-collections-generic-ireadonlylist-chartforgex-core-chartaxislabel) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartAxisLabel 3 overloads 

 `public ChartAxisLabel(double value, string text)` [#](#constructor-ctor-double-string) 

[ChartAxisLabel.cs:34](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L34)

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

Parameters

**value double required**

The numeric axis value.

**text string required**

The label text.

 `public ChartAxisLabel(double value, string text, params string[] groups)` [#](#constructor-ctor-double-string-string) 

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

Creates a numeric category label with a copied, immutable path of parent captions.

Parameters

**value double required**

The original numeric category coordinate.

**text string required**

The complete leaf caption.

**groups string[] required**

Nonblank parent captions, outermost first. An empty array leaves the label ungrouped.

 `public ChartAxisLabel(DateTime value, string text)` [#](#constructor-ctor-datetime-string) 

[ChartAxisLabel.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L62)

Initializes a new instance of the [ChartAxisLabel](/api/chartforgex-core-chartaxislabel/) struct from a date/time axis value, stored as a UTC instant (DateTimeKind.Local values are converted; DateTimeKind.Unspecified values are treated as UTC). The label text is not changed.

Parameters

**value System.DateTime required**

The date/time axis value.

**text string required**

The label text.

## Methods

 Equals 2 overloads 

 `public bool Equals(ChartAxisLabel other)` [#](#method-equals-chartforgex-core-chartaxislabel) 

[ChartAxisLabel.cs:71](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L71)

Compares the coordinate, leaf caption and ordered parent captions by value.

Parameters

**other ChartForgeX.Core.ChartAxisLabel required**

Returns

 `bool` 

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

[ChartAxisLabel.cs:78](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L78)

Compares labels by value when obj is an axis label.

Parameters

**obj object? required**

Returns

 `bool` 

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

[ChartAxisLabel.cs:83](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L83)

Returns a value hash of the coordinate and ordinal caption path.

Returns

 `int` 

 `public static bool op_Equality(ChartAxisLabel left, ChartAxisLabel right)` [#](#method-op-equality-chartforgex-core-chartaxislabel-chartforgex-core-chartaxislabel) 

[ChartAxisLabel.cs:90](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L90)

Compares axis labels by value.

Parameters

**left ChartForgeX.Core.ChartAxisLabel required**

**right ChartForgeX.Core.ChartAxisLabel required**

Returns

 `bool` 

 `public static bool op_Inequality(ChartAxisLabel left, ChartAxisLabel right)` [#](#method-op-inequality-chartforgex-core-chartaxislabel-chartforgex-core-chartaxislabel) 

[ChartAxisLabel.cs:92](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L92)

Compares axis labels by value.

Parameters

**left ChartForgeX.Core.ChartAxisLabel required**

**right ChartForgeX.Core.ChartAxisLabel required**

Returns

 `bool` 

## Inherited Methods

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public IReadOnlyList<string> Groups { get; }` [#](#property-groups) 

[ChartAxisLabel.cs:26](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L26)

Gets the category's parent captions, ordered from the outermost group to the nearest parent.

## Fields

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

[ChartAxisLabel.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L15)

Gets the axis value that should display the label.

 `public readonly string Text` [#](#field-text) 

[ChartAxisLabel.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartAxisLabel.cs#L20)

Gets the text displayed for the axis value.

<!-- PowerForge markdown artifact sha256:0D105DCA36203219484132F3FFFDE7501B70536E4E7BF0991DB55934CAF2DDA9 -->
