# ChartDataLabelOptions

Data label visibility, placement and leader-line connectors. Configure it through ChartOptions.DataLabels.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartDataLabelOptions.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDataLabelOptions.cs#L24)

**Modifiers**

sealed

**Attributes**

 `Fluent(Copy = "Clone")` 

Data label visibility, placement and leader-line connectors. Configure it through [ChartOptions.DataLabels](/api/chartforgex-core-chartoptions/).

## Inheritance

- object
- ChartDataLabelOptions

## Usage

 Explore 33 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 13

- Extension method [ChartDataLabelOptions.ConnectorColor](/api/chartforgex-core-chartdatalabeloptions/#extension-connectorcolor-chartforgex-core-chartdatalabeloptions-nullable-chartforgex-primitives-chartcolor)
- Extension method [ChartDataLabelOptions.ConnectorOpacity](/api/chartforgex-core-chartdatalabeloptions/#extension-connectoropacity-chartforgex-core-chartdatalabeloptions-double)
- Extension method [ChartDataLabelOptions.ConnectorStrokeWidth](/api/chartforgex-core-chartdatalabeloptions/#extension-connectorstrokewidth-chartforgex-core-chartdatalabeloptions-double)
- Extension method [ChartDataLabelOptions.ConnectorStyle](/api/chartforgex-core-chartdatalabeloptions/#extension-connectorstyle-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelconnectorstyle)
- Extension method [ChartDataLabelOptions.Placement](/api/chartforgex-core-chartdatalabeloptions/#extension-placement-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelplacement)
- Extension method [ChartDataLabelOptions.Visible](/api/chartforgex-core-chartdatalabeloptions/#extension-visible-chartforgex-core-chartdatalabeloptions-nullable-system-boolean)
- Method [ChartDataLabelOptionsFluent.ConnectorColor](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectorcolor-chartforgex-core-chartdatalabeloptions-nullable-chartforgex-primitives-chartcolor)
- Method [ChartDataLabelOptionsFluent.ConnectorOpacity](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectoropacity-chartforgex-core-chartdatalabeloptions-double)
- Method [ChartDataLabelOptionsFluent.ConnectorStrokeWidth](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectorstrokewidth-chartforgex-core-chartdatalabeloptions-double)
- Method [ChartDataLabelOptionsFluent.ConnectorStyle](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectorstyle-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelconnectorstyle)
- Method [ChartDataLabelOptionsFluent.Placement](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-placement-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelplacement)
- Method [ChartDataLabelOptionsFluent.Visible](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-visible-chartforgex-core-chartdatalabeloptions-nullable-system-boolean)
- Property [ChartOptions.DataLabels](/api/chartforgex-core-chartoptions/#property-datalabels)

### Accepted by parameters 20

- Extension method [Chart.DataLabels](/api/chartforgex-core-chart/#extension-datalabels-chartforgex-core-chart-action-chartforgex-core-chartdatalabeloptions) parameter `configure`
- Extension method [Chart.DataLabels](/api/chartforgex-core-chart/#extension-datalabels-chartforgex-core-chart-chartforgex-core-chartdatalabeloptions) parameter `value`
- Extension method [ChartDataLabelOptions.ConnectorColor](/api/chartforgex-core-chartdatalabeloptions/#extension-connectorcolor-chartforgex-core-chartdatalabeloptions-nullable-chartforgex-primitives-chartcolor) parameter `chartDataLabelOptions`
- Extension method [ChartDataLabelOptions.ConnectorOpacity](/api/chartforgex-core-chartdatalabeloptions/#extension-connectoropacity-chartforgex-core-chartdatalabeloptions-double) parameter `chartDataLabelOptions`
- Extension method [ChartDataLabelOptions.ConnectorStrokeWidth](/api/chartforgex-core-chartdatalabeloptions/#extension-connectorstrokewidth-chartforgex-core-chartdatalabeloptions-double) parameter `chartDataLabelOptions`
- Extension method [ChartDataLabelOptions.ConnectorStyle](/api/chartforgex-core-chartdatalabeloptions/#extension-connectorstyle-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelconnectorstyle) parameter `chartDataLabelOptions`
- Extension method [ChartDataLabelOptions.Placement](/api/chartforgex-core-chartdatalabeloptions/#extension-placement-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelplacement) parameter `chartDataLabelOptions`
- Extension method [ChartDataLabelOptions.Visible](/api/chartforgex-core-chartdatalabeloptions/#extension-visible-chartforgex-core-chartdatalabeloptions-nullable-system-boolean) parameter `chartDataLabelOptions`
- Method [ChartDataLabelOptionsFluent.ConnectorColor](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectorcolor-chartforgex-core-chartdatalabeloptions-nullable-chartforgex-primitives-chartcolor) parameter `chartDataLabelOptions`
- Method [ChartDataLabelOptionsFluent.ConnectorOpacity](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectoropacity-chartforgex-core-chartdatalabeloptions-double) parameter `chartDataLabelOptions`
- Method [ChartDataLabelOptionsFluent.ConnectorStrokeWidth](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectorstrokewidth-chartforgex-core-chartdatalabeloptions-double) parameter `chartDataLabelOptions`
- Method [ChartDataLabelOptionsFluent.ConnectorStyle](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-connectorstyle-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelconnectorstyle) parameter `chartDataLabelOptions`
- Method [ChartDataLabelOptionsFluent.Placement](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-placement-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelplacement) parameter `chartDataLabelOptions`
- Method [ChartDataLabelOptionsFluent.Visible](/api/chartforgex-core-chartdatalabeloptionsfluent/#method-visible-chartforgex-core-chartdatalabeloptions-nullable-system-boolean) parameter `chartDataLabelOptions`
- Method [ChartFluent.DataLabels](/api/chartforgex-core-chartfluent/#method-datalabels-chartforgex-core-chart-action-chartforgex-core-chartdatalabeloptions) parameter `configure`
- Method [ChartFluent.DataLabels](/api/chartforgex-core-chartfluent/#method-datalabels-chartforgex-core-chart-chartforgex-core-chartdatalabeloptions) parameter `value`
- Extension method [ChartOptions.DataLabels](/api/chartforgex-core-chartoptions/#extension-datalabels-chartforgex-core-chartoptions-action-chartforgex-core-chartdatalabeloptions) parameter `configure`
- Extension method [ChartOptions.DataLabels](/api/chartforgex-core-chartoptions/#extension-datalabels-chartforgex-core-chartoptions-chartforgex-core-chartdatalabeloptions) parameter `value`
- Method [ChartOptionsFluent.DataLabels](/api/chartforgex-core-chartoptionsfluent/#method-datalabels-chartforgex-core-chartoptions-action-chartforgex-core-chartdatalabeloptions) parameter `configure`
- Method [ChartOptionsFluent.DataLabels](/api/chartforgex-core-chartoptionsfluent/#method-datalabels-chartforgex-core-chartoptions-chartforgex-core-chartdatalabeloptions) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 `public ChartDataLabelOptions()` [#](#constructor-ctor) 

[ChartDataLabelOptions.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDataLabelOptions.cs#L24)

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from object

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from object

Returns

 `string?` 

## Properties

 `public bool? Visible { get; set; }` [#](#property-visible) 

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

Gets or sets chart-level data-label visibility. Series without an explicit override use this setting. When unset, the renderer uses its family's default visibility.

 `public ChartDataLabelPlacement Placement { get; set; }` [#](#property-placement) 

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

Gets or sets the preferred data-label placement for capable renderers.

 `public ChartColor? ConnectorColor { get; set; }` [#](#property-connectorcolor) 

[ChartDataLabelOptions.cs:51](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDataLabelOptions.cs#L51)

Gets or sets an optional override color for data-label connector lines. Pie and donut callouts use the matching slice color when this is null.

 `public double ConnectorOpacity { get; set; }` [#](#property-connectoropacity) 

[ChartDataLabelOptions.cs:60](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDataLabelOptions.cs#L60)

Gets or sets the opacity used by data-label connector lines.

 `public double ConnectorStrokeWidth { get; set; }` [#](#property-connectorstrokewidth) 

[ChartDataLabelOptions.cs:73](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDataLabelOptions.cs#L73)

Gets or sets the stroke width used by data-label connector lines.

 `public ChartDataLabelConnectorStyle ConnectorStyle { get; set; }` [#](#property-connectorstyle) 

[ChartDataLabelOptions.cs:86](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDataLabelOptions.cs#L86)

Gets or sets the connector line shape used by outside and side data labels.

## Extension Methods

 `public static ChartDataLabelOptions ConnectorColor(ChartDataLabelOptions chartDataLabelOptions, ChartColor? value)` [#](#extension-connectorcolor-chartforgex-core-chartdatalabeloptions-nullable-chartforgex-primitives-chartcolor) 

Sets [ChartDataLabelOptions.ConnectorColor](/api/chartforgex-core-chartdatalabeloptions/): Gets or sets an optional override color for data-label connector lines. Pie and donut callouts use the matching slice color when this is null.

Parameters

**chartDataLabelOptions ChartForgeX.Core.ChartDataLabelOptions required**

The instance.

**value ChartForgeX.Primitives.ChartColor? required**

The value.

Returns

 `ChartDataLabelOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorColor = value };    chartDataLabelOptions.ConnectorColor(value);
```

 `public static ChartDataLabelOptions ConnectorOpacity(ChartDataLabelOptions chartDataLabelOptions, double value)` [#](#extension-connectoropacity-chartforgex-core-chartdatalabeloptions-double) 

Sets [ChartDataLabelOptions.ConnectorOpacity](/api/chartforgex-core-chartdatalabeloptions/): Gets or sets the opacity used by data-label connector lines.

Parameters

**chartDataLabelOptions ChartForgeX.Core.ChartDataLabelOptions required**

The instance.

**value double required**

The value.

Returns

 `ChartDataLabelOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorOpacity = value };    chartDataLabelOptions.ConnectorOpacity(value);
```

 `public static ChartDataLabelOptions ConnectorStrokeWidth(ChartDataLabelOptions chartDataLabelOptions, double value)` [#](#extension-connectorstrokewidth-chartforgex-core-chartdatalabeloptions-double) 

Sets [ChartDataLabelOptions.ConnectorStrokeWidth](/api/chartforgex-core-chartdatalabeloptions/): Gets or sets the stroke width used by data-label connector lines.

Parameters

**chartDataLabelOptions ChartForgeX.Core.ChartDataLabelOptions required**

The instance.

**value double required**

The value.

Returns

 `ChartDataLabelOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorStrokeWidth = value };    chartDataLabelOptions.ConnectorStrokeWidth(value);
```

 `public static ChartDataLabelOptions ConnectorStyle(ChartDataLabelOptions chartDataLabelOptions, ChartDataLabelConnectorStyle value)` [#](#extension-connectorstyle-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelconnectorstyle) 

Sets [ChartDataLabelOptions.ConnectorStyle](/api/chartforgex-core-chartdatalabeloptions/): Gets or sets the connector line shape used by outside and side data labels.

Parameters

**chartDataLabelOptions ChartForgeX.Core.ChartDataLabelOptions required**

The instance.

**value ChartForgeX.Core.ChartDataLabelConnectorStyle required**

The value.

Returns

 `ChartDataLabelOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorStyle = value };    chartDataLabelOptions.ConnectorStyle(value);
```

 `public static ChartDataLabelOptions Placement(ChartDataLabelOptions chartDataLabelOptions, ChartDataLabelPlacement value)` [#](#extension-placement-chartforgex-core-chartdatalabeloptions-chartforgex-core-chartdatalabelplacement) 

Sets [ChartDataLabelOptions.Placement](/api/chartforgex-core-chartdatalabeloptions/): Gets or sets the preferred data-label placement for capable renderers.

Parameters

**chartDataLabelOptions ChartForgeX.Core.ChartDataLabelOptions required**

The instance.

**value ChartForgeX.Core.ChartDataLabelPlacement required**

The value.

Returns

 `ChartDataLabelOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { Placement = value };    chartDataLabelOptions.Placement(value);
```

 `public static ChartDataLabelOptions Visible(ChartDataLabelOptions chartDataLabelOptions, bool? value = true)` [#](#extension-visible-chartforgex-core-chartdatalabeloptions-nullable-system-boolean) 

Sets [ChartDataLabelOptions.Visible](/api/chartforgex-core-chartdatalabeloptions/): Gets or sets chart-level data-label visibility. Series without an explicit override use this setting. When unset, the renderer uses its family's default visibility.

Parameters

**chartDataLabelOptions ChartForgeX.Core.ChartDataLabelOptions required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

 `ChartDataLabelOptions` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { Visible = value };    chartDataLabelOptions.Visible(value);
```

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