# ChartColorLegendStyle

Chooses how a numeric color key is presented independently of its value-to-color mapping.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartColorLegendStyle.cs:4](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorLegendStyle.cs#L4)

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Chooses how a numeric color key is presented independently of its value-to-color mapping.

## Inheritance

- Enum
- ChartColorLegendStyle

## 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 4

- Property [ChartColorDimensionOptions.LegendStyle](/api/chartforgex-core-chartcolordimensionoptions/#property-legendstyle)
- Field [ChartColorLegendStyle.Auto](/api/chartforgex-core-chartcolorlegendstyle/#field-auto)
- Field [ChartColorLegendStyle.Gradient](/api/chartforgex-core-chartcolorlegendstyle/#field-gradient)
- Field [ChartColorLegendStyle.Swatches](/api/chartforgex-core-chartcolorlegendstyle/#field-swatches)

### Accepted by parameters 2

- Extension method [ChartColorDimensionOptions.LegendStyle](/api/chartforgex-core-chartcolordimensionoptions/#extension-legendstyle-chartforgex-core-chartcolordimensionoptions-chartforgex-core-chartcolorlegendstyle) parameter `value`
- Method [ChartColorDimensionOptionsFluent.LegendStyle](/api/chartforgex-core-chartcolordimensionoptionsfluent/#method-legendstyle-chartforgex-core-chartcolordimensionoptions-chartforgex-core-chartcolorlegendstyle) parameter `value`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

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

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from Enum

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

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

Inherited from Enum

Returns

 `string` 

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

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const ChartColorLegendStyle Auto` [#](#field-auto) 

[ChartColorLegendStyle.cs:6](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorLegendStyle.cs#L6)

Preserves the chart family's default numeric key presentation.

Value: `0`

 `public const ChartColorLegendStyle Gradient` [#](#field-gradient) 

[ChartColorLegendStyle.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorLegendStyle.cs#L8)

Draws the continuous scale's exact stops at their numeric positions.

Value: `1`

 `public const ChartColorLegendStyle Swatches` [#](#field-swatches) 

[ChartColorLegendStyle.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartColorLegendStyle.cs#L10)

Draws bounded samples of a continuous scale or the exact intervals of a discrete scale.

Value: `2`

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