# ChartDumbbell

Represents one x position with two comparable values.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`ValueType`

**Modifiers**

sealed

Represents one x position with two comparable values.

## Inheritance

- ValueType
- ChartDumbbell

## Usage

 Explore 7 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 [ChartDumbbell.WithMarkOptions](/api/chartforgex-core-chartdumbbell/#method-withmarkoptions-chartforgex-core-chartmarkoptions)
- Property [ChartSeries.Dumbbells](/api/chartforgex-core-chartseries/#property-dumbbells)

### Accepted by parameters 5

- Method [Chart.AddDumbbell](/api/chartforgex-core-chart/#method-adddumbbell-string-collections-generic-ienumerable-chartforgex-core-chartdumbbell-nullable-chartforgex-primitives-chartcolor) parameter `values`
- Method [Chart.AddDumbbell``1](/api/chartforgex-core-chart/#method-adddumbbell-string-collections-generic-ienumerable-func-chartforgex-core-chartdumbbell-nullable-chartforgex-primitives-chartcolor) parameter `observation`
- Method [ChartSeries.CreateDumbbell](/api/chartforgex-core-chartseries/#method-createdumbbell-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartdumbbell-nullable-chartforgex-primitives-chartcolor) parameter `values`
- Method [ChartSeries.ReplaceDumbbells](/api/chartforgex-core-chartseries/#method-replacedumbbells-collections-generic-ienumerable-chartforgex-core-chartdumbbell) parameter `values`
- Method [ChartSeries.UpdateDumbbell](/api/chartforgex-core-chartseries/#method-updatedumbbell-int32-chartforgex-core-chartdumbbell) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartDumbbell 2 overloads 

 `public ChartDumbbell(double x, double start, double end)` [#](#constructor-ctor-double-double-double) 

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

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

Parameters

**x double required**

The horizontal coordinate.

**start double required**

The first comparison value.

**end double required**

The second comparison value.

 `public ChartDumbbell(DateTime x, double start, double end)` [#](#constructor-ctor-datetime-double-double) 

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

Initializes a new instance of the [ChartDumbbell](/api/chartforgex-core-chartdumbbell/) struct from a date/time x value.

Parameters

**x System.DateTime required**

The date/time x value.

**start double required**

The first comparison value.

**end double required**

The second comparison value.

## Methods

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

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

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

 `ChartDumbbell` 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) 

[ChartDumbbell.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDumbbell.cs#L50)

Gets optional immutable navigation, accessibility and host metadata.

## Fields

 `public readonly double X` [#](#field-x) 

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

Gets the horizontal coordinate.

 `public readonly double Start` [#](#field-start) 

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

Gets the first comparison value.

 `public readonly double End` [#](#field-end) 

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

Gets the second comparison value.

<!-- PowerForge markdown artifact sha256:629976A8D566D354294ED327C386EF2E2F21AB355932B49293A251F75D169447 -->
