ChartPieOptions
ChartForgeX.Core
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.
Returned or exposed by 29
- Property ChartOptions.Pie
- Extension method ChartPieOptions.CenterLabel
- Extension method ChartPieOptions.CenterValue
- Extension method ChartPieOptions.InnerRadiusRatio
- Extension method ChartPieOptions.InsideLabelRadiusRatio
- Extension method ChartPieOptions.LegendContent
- Extension method ChartPieOptions.MaxSlices
- Extension method ChartPieOptions.OuterOutline
- Extension method ChartPieOptions.OutsideLabelDistanceRatio
- Extension method ChartPieOptions.PreserveSourceOrder
- Extension method ChartPieOptions.ShowCenterLabel
- Extension method ChartPieOptions.SliceLabelBy
- Extension method ChartPieOptions.SliceLabelContent
- Extension method ChartPieOptions.SliceOpacity
- Extension method ChartPieOptions.SliceOutline
- Method ChartPieOptionsFluent.CenterLabel
- Method ChartPieOptionsFluent.CenterValue
- Method ChartPieOptionsFluent.InnerRadiusRatio
- Method ChartPieOptionsFluent.InsideLabelRadiusRatio
- Method ChartPieOptionsFluent.LegendContent
- Method ChartPieOptionsFluent.MaxSlices
- Method ChartPieOptionsFluent.OuterOutline
- Method ChartPieOptionsFluent.OutsideLabelDistanceRatio
- Method ChartPieOptionsFluent.PreserveSourceOrder
- Method ChartPieOptionsFluent.ShowCenterLabel
- Method ChartPieOptionsFluent.SliceLabelBy
- Method ChartPieOptionsFluent.SliceLabelContent
- Method ChartPieOptionsFluent.SliceOpacity
- Method ChartPieOptionsFluent.SliceOutline
Accepted by parameters 36
- Extension method Chart.Pie
- Extension method Chart.Pie
- Method ChartFluent.Pie
- Method ChartFluent.Pie
- Extension method ChartOptions.Pie
- Extension method ChartOptions.Pie
- Method ChartOptionsFluent.Pie
- Method ChartOptionsFluent.Pie
- Extension method ChartPieOptions.CenterLabel
- Extension method ChartPieOptions.CenterValue
- Extension method ChartPieOptions.InnerRadiusRatio
- Extension method ChartPieOptions.InsideLabelRadiusRatio
- Extension method ChartPieOptions.LegendContent
- Extension method ChartPieOptions.MaxSlices
- Extension method ChartPieOptions.OuterOutline
- Extension method ChartPieOptions.OutsideLabelDistanceRatio
- Extension method ChartPieOptions.PreserveSourceOrder
- Extension method ChartPieOptions.ShowCenterLabel
- Extension method ChartPieOptions.SliceLabelBy
- Extension method ChartPieOptions.SliceLabelContent
- Extension method ChartPieOptions.SliceOpacity
- Extension method ChartPieOptions.SliceOutline
- Method ChartPieOptionsFluent.CenterLabel
- Method ChartPieOptionsFluent.CenterValue
- Method ChartPieOptionsFluent.InnerRadiusRatio
- Method ChartPieOptionsFluent.InsideLabelRadiusRatio
- Method ChartPieOptionsFluent.LegendContent
- Method ChartPieOptionsFluent.MaxSlices
- Method ChartPieOptionsFluent.OuterOutline
- Method ChartPieOptionsFluent.OutsideLabelDistanceRatio
- Method ChartPieOptionsFluent.PreserveSourceOrder
- Method ChartPieOptionsFluent.ShowCenterLabel
- Method ChartPieOptionsFluent.SliceLabelBy
- Method ChartPieOptionsFluent.SliceLabelContent
- Method ChartPieOptionsFluent.SliceOpacity
- Method ChartPieOptionsFluent.SliceOutline
Constructors
public ChartPieOptions() #Inherited Methods
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
- The instance.
- value string?
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value double?
- The value.
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
- The instance.
- value ChartForgeX.Core.ChartPieLegendContent?
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value ChartForgeX.Core.ChartStrokeStyle?
- The value.
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
- The instance.
- value double
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value System.Func<ChartForgeX.Core.ChartPieSliceLabelContext, string?>?
- The callback.
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
- The instance.
- value ChartForgeX.Core.ChartPieSliceLabelContent
- The value.
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
- The instance.
- value double?
- The value.
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
- The instance.
- value ChartForgeX.Core.ChartStrokeStyle?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Core.ChartPieOptions { SliceOutline = value }; chartPieOptions.SliceOutline(value);