ChartDataLabelOptions
ChartForgeX.Core
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.
Returned or exposed by 13
- Extension method ChartDataLabelOptions.ConnectorColor
- Extension method ChartDataLabelOptions.ConnectorOpacity
- Extension method ChartDataLabelOptions.ConnectorStrokeWidth
- Extension method ChartDataLabelOptions.ConnectorStyle
- Extension method ChartDataLabelOptions.Placement
- Extension method ChartDataLabelOptions.Visible
- Method ChartDataLabelOptionsFluent.ConnectorColor
- Method ChartDataLabelOptionsFluent.ConnectorOpacity
- Method ChartDataLabelOptionsFluent.ConnectorStrokeWidth
- Method ChartDataLabelOptionsFluent.ConnectorStyle
- Method ChartDataLabelOptionsFluent.Placement
- Method ChartDataLabelOptionsFluent.Visible
- Property ChartOptions.DataLabels
Accepted by parameters 20
- Extension method Chart.DataLabels
- Extension method Chart.DataLabels
- Extension method ChartDataLabelOptions.ConnectorColor
- Extension method ChartDataLabelOptions.ConnectorOpacity
- Extension method ChartDataLabelOptions.ConnectorStrokeWidth
- Extension method ChartDataLabelOptions.ConnectorStyle
- Extension method ChartDataLabelOptions.Placement
- Extension method ChartDataLabelOptions.Visible
- Method ChartDataLabelOptionsFluent.ConnectorColor
- Method ChartDataLabelOptionsFluent.ConnectorOpacity
- Method ChartDataLabelOptionsFluent.ConnectorStrokeWidth
- Method ChartDataLabelOptionsFluent.ConnectorStyle
- Method ChartDataLabelOptionsFluent.Placement
- Method ChartDataLabelOptionsFluent.Visible
- Method ChartFluent.DataLabels
- Method ChartFluent.DataLabels
- Extension method ChartOptions.DataLabels
- Extension method ChartOptions.DataLabels
- Method ChartOptionsFluent.DataLabels
- Method ChartOptionsFluent.DataLabels
Constructors
public ChartDataLabelOptions() #Inherited Methods
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
- The instance.
- value ChartForgeX.Primitives.ChartColor?
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value ChartForgeX.Core.ChartDataLabelConnectorStyle
- The value.
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
- The instance.
- value ChartForgeX.Core.ChartDataLabelPlacement
- The value.
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
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartDataLabelOptions { Visible = value }; chartDataLabelOptions.Visible(value);