Skip to content
ChartForgeX
Class

ChartPieOptions

ChartForgeX.Core

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

Pie and donut slices, labels and centre text. Configure it through ChartOptions.Pie.

Inheritance

  • object
  • ChartPieOptions

Usage

Explore 65 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 36

Constructors

public ChartPieOptions() #

Properties

public bool ShowCenterLabel { get; set; } #

Gets or sets a value indicating whether donut charts render the center total and series label.

public double InnerRadiusRatio { get; set; } #

Gets or sets the ratio of the donut hole radius to the outer radius.

public string? CenterValue { get; set; } #

Gets or sets optional custom primary text rendered in the center of donut charts.

public string? CenterLabel { get; set; } #

Gets or sets optional custom secondary text rendered in the center of donut charts.

public ChartPieSliceLabelContent SliceLabelContent { get; set; } #

Gets or sets the text rendered for pie and donut slice data labels.

public Func<ChartPieSliceLabelContext, string?>? SliceLabelFormatter { get; set; } #
Fluent("SliceLabelBy")

Gets or sets a custom formatter for pie and donut slice data labels.

public double OutsideLabelDistanceRatio { get; set; } #

Gets or sets the side-lane distance for outside pie and donut labels as a ratio of the outer radius.

public int MaxSlices { get; set; } #

Gets or sets the maximum displayed pie or donut slices, including an aggregate Other slice.

public double? InsideLabelRadiusRatio { get; set; } #

Gets or sets an inside label's distance from its slice center as a fraction of the outer radius.

public double? SliceOpacity { get; set; } #

Gets or sets an opacity multiplier for Pie/Donut slice fill, separator and pattern paint; null retains ordinary native paint.

public ChartStrokeStyle? SliceOutline { get; set; } #

Gets or sets an immutable slice outline. Null retains the native surface-colored two-pixel separator.

public ChartStrokeStyle? OuterOutline { get; set; } #

Gets or sets an immutable outer-circle outline for each pie or donut band. Null adds no outer-circle mark.

public bool PreserveSourceOrder { get; set; } #

Gets or sets whether pie and donut marks and legends keep authored observation order.

public ChartPieLegendContent? LegendContent { get; set; } #

Gets or sets optional pie and donut legend columns. Null retains native labels, values and percentages.

Extension Methods

public static ChartPieOptions CenterLabel(ChartPieOptions chartPieOptions, string? value) #

Sets ChartPieOptions.CenterLabel: Gets or sets optional custom secondary text rendered in the center of donut charts.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value string? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { CenterLabel = value };    chartPieOptions.CenterLabel(value);
public static ChartPieOptions CenterValue(ChartPieOptions chartPieOptions, string? value) #

Sets ChartPieOptions.CenterValue: Gets or sets optional custom primary text rendered in the center of donut charts.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value string? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { CenterValue = value };    chartPieOptions.CenterValue(value);
public static ChartPieOptions InnerRadiusRatio(ChartPieOptions chartPieOptions, double value) #

Sets ChartPieOptions.InnerRadiusRatio: Gets or sets the ratio of the donut hole radius to the outer radius.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value double required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { InnerRadiusRatio = value };    chartPieOptions.InnerRadiusRatio(value);
public static ChartPieOptions InsideLabelRadiusRatio(ChartPieOptions chartPieOptions, double? value) #

Sets ChartPieOptions.InsideLabelRadiusRatio: Gets or sets an inside label's distance from its slice center as a fraction of the outer radius.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value double? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { InsideLabelRadiusRatio = value };    chartPieOptions.InsideLabelRadiusRatio(value);
public static ChartPieOptions LegendContent(ChartPieOptions chartPieOptions, ChartPieLegendContent? value) #

Sets ChartPieOptions.LegendContent: Gets or sets optional pie and donut legend columns. Null retains native labels, values and percentages.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value ChartForgeX.Core.ChartPieLegendContent? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { LegendContent = value };    chartPieOptions.LegendContent(value);
public static ChartPieOptions MaxSlices(ChartPieOptions chartPieOptions, int value) #

Sets ChartPieOptions.MaxSlices: Gets or sets the maximum displayed pie or donut slices, including an aggregate Other slice.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value int required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { MaxSlices = value };    chartPieOptions.MaxSlices(value);
public static ChartPieOptions OuterOutline(ChartPieOptions chartPieOptions, ChartStrokeStyle? value) #

Sets ChartPieOptions.OuterOutline: Gets or sets an immutable outer-circle outline for each pie or donut band. Null adds no outer-circle mark.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value ChartForgeX.Core.ChartStrokeStyle? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { OuterOutline = value };    chartPieOptions.OuterOutline(value);
public static ChartPieOptions OutsideLabelDistanceRatio(ChartPieOptions chartPieOptions, double value) #

Sets ChartPieOptions.OutsideLabelDistanceRatio: Gets or sets the side-lane distance for outside pie and donut labels as a ratio of the outer radius.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value double required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                          // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { OutsideLabelDistanceRatio = value };    chartPieOptions.OutsideLabelDistanceRatio(value);
public static ChartPieOptions PreserveSourceOrder(ChartPieOptions chartPieOptions, bool value = true) #

Sets ChartPieOptions.PreserveSourceOrder: Gets or sets whether pie and donut marks and legends keep authored observation order.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { PreserveSourceOrder = value };    chartPieOptions.PreserveSourceOrder(value);
public static ChartPieOptions ShowCenterLabel(ChartPieOptions chartPieOptions, bool value = true) #

Sets ChartPieOptions.ShowCenterLabel: Gets or sets a value indicating whether donut charts render the center total and series label.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { ShowCenterLabel = value };    chartPieOptions.ShowCenterLabel(value);
public static ChartPieOptions SliceLabelBy(ChartPieOptions chartPieOptions, Func<ChartPieSliceLabelContext, string?>? value) #

Sets ChartPieOptions.SliceLabelFormatter: Gets or sets a custom formatter for pie and donut slice data labels.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value System.Func<ChartForgeX.Core.ChartPieSliceLabelContext, string?>? required
The callback.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { SliceLabelFormatter = value };    chartPieOptions.SliceLabelBy(value);
public static ChartPieOptions SliceLabelContent(ChartPieOptions chartPieOptions, ChartPieSliceLabelContent value) #

Sets ChartPieOptions.SliceLabelContent: Gets or sets the text rendered for pie and donut slice data labels.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value ChartForgeX.Core.ChartPieSliceLabelContent required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { SliceLabelContent = value };    chartPieOptions.SliceLabelContent(value);
public static ChartPieOptions SliceOpacity(ChartPieOptions chartPieOptions, double? value) #

Sets ChartPieOptions.SliceOpacity: Gets or sets an opacity multiplier for Pie/Donut slice fill, separator and pattern paint; null retains ordinary native paint.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value double? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { SliceOpacity = value };    chartPieOptions.SliceOpacity(value);
public static ChartPieOptions SliceOutline(ChartPieOptions chartPieOptions, ChartStrokeStyle? value) #

Sets ChartPieOptions.SliceOutline: Gets or sets an immutable slice outline. Null retains the native surface-colored two-pixel separator.

Parameters

chartPieOptions ChartForgeX.Core.ChartPieOptions required
The instance.
value ChartForgeX.Core.ChartStrokeStyle? required
The value.

Returns

ChartPieOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { SliceOutline = value };    chartPieOptions.SliceOutline(value);