# ChartBarStyle

Defines the visual treatment used for bar and horizontal-bar marks.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Defines the visual treatment used for bar and horizontal-bar marks.

## Inheritance

- Enum
- ChartBarStyle

## Usage

 Explore 9 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 5

- Property [ChartBarOptions.Style](/api/chartforgex-core-chartbaroptions/#property-style)
- Field [ChartBarStyle.Flat](/api/chartforgex-core-chartbarstyle/#field-flat)
- Field [ChartBarStyle.SegmentedCapsule](/api/chartforgex-core-chartbarstyle/#field-segmentedcapsule)
- Field [ChartBarStyle.Solid](/api/chartforgex-core-chartbarstyle/#field-solid)
- Property [ChartBarVisualStyle.Kind](/api/chartforgex-core-chartbarvisualstyle/#property-kind)

### Accepted by parameters 4

- Extension method [ChartBarOptions.Style](/api/chartforgex-core-chartbaroptions/#extension-style-chartforgex-core-chartbaroptions-chartforgex-core-chartbarstyle) parameter `value`
- Method [ChartBarOptionsFluent.Style](/api/chartforgex-core-chartbaroptionsfluent/#method-style-chartforgex-core-chartbaroptions-chartforgex-core-chartbarstyle) parameter `value`
- Extension method [ChartBarVisualStyle.Kind](/api/chartforgex-core-chartbarvisualstyle/#extension-kind-chartforgex-core-chartbarvisualstyle-chartforgex-core-chartbarstyle) parameter `value`
- Method [ChartBarVisualStyleFluent.Kind](/api/chartforgex-core-chartbarvisualstylefluent/#method-kind-chartforgex-core-chartbarvisualstyle-chartforgex-core-chartbarstyle) 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 ChartBarStyle Solid` [#](#field-solid) 

[ChartBarStyle.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBarStyle.cs#L11)

Renders bars, horizontal bars, and histograms as rounded rectangles with a soft vertical gradient derived from the bar colour and a light highlight along the top edge (SVG range bars are a translucent fill).

Value: `0`

 `public const ChartBarStyle SegmentedCapsule` [#](#field-segmentedcapsule) 

[ChartBarStyle.cs:16](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartBarStyle.cs#L16)

Renders bars as translucent rounded segments with a stronger rounded cap at the value edge.

Value: `1`

 `public const ChartBarStyle Flat` [#](#field-flat) 

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

Renders bars, horizontal bars, histograms, range bars, and waterfall steps as rounded rectangles filled with the bar colour only: no gradient, no highlight, full opacity, so a bar is exactly its series or point colour (for example a design-token colour).

Value: `2`

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