Skip to content
ChartForgeX
Class

ChartDataLabelOptions

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

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

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.

Accepted by parameters 20

Constructors

public ChartDataLabelOptions() #

Properties

public bool? Visible { get; set; } #

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; } #

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

public ChartColor? ConnectorColor { get; set; } #

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; } #

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

public double ConnectorStrokeWidth { get; set; } #

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

public ChartDataLabelConnectorStyle ConnectorStyle { get; set; } #

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

Extension Methods

public static ChartDataLabelOptions ConnectorColor(ChartDataLabelOptions chartDataLabelOptions, ChartColor? value) #

Sets ChartDataLabelOptions.ConnectorColor: 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

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorColor = value };    chartDataLabelOptions.ConnectorColor(value);
public static ChartDataLabelOptions ConnectorOpacity(ChartDataLabelOptions chartDataLabelOptions, double value) #

Sets ChartDataLabelOptions.ConnectorOpacity: 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

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorOpacity = value };    chartDataLabelOptions.ConnectorOpacity(value);
public static ChartDataLabelOptions ConnectorStrokeWidth(ChartDataLabelOptions chartDataLabelOptions, double value) #

Sets ChartDataLabelOptions.ConnectorStrokeWidth: 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

// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorStrokeWidth = value };    chartDataLabelOptions.ConnectorStrokeWidth(value);
public static ChartDataLabelOptions ConnectorStyle(ChartDataLabelOptions chartDataLabelOptions, ChartDataLabelConnectorStyle value) #

Sets ChartDataLabelOptions.ConnectorStyle: 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

// C# initializer or property                                                     // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { ConnectorStyle = value };    chartDataLabelOptions.ConnectorStyle(value);
public static ChartDataLabelOptions Placement(ChartDataLabelOptions chartDataLabelOptions, ChartDataLabelPlacement value) #

Sets ChartDataLabelOptions.Placement: 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

// 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) #

Sets ChartDataLabelOptions.Visible: 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

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