Skip to content
ChartForgeX
Struct

ChartPieSliceLabelContext

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Base
ValueType
Modifiers
sealed

Provides pie and donut slice values to custom slice label formatters.

Inheritance

  • ValueType
  • ChartPieSliceLabelContext

Usage

Explore 3 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 1

Accepted by parameters 2

Constructors

public ChartPieSliceLabelContext(string seriesName, string label, double value, double percent, string formattedValue, string formattedPercent, int pointIndex) #

Initializes a new instance of the ChartPieSliceLabelContext struct.

Parameters

seriesName string required
label string required
value double required
percent double required
formattedValue string required
formattedPercent string required
pointIndex int required

Properties

public string SeriesName { get; } #

Gets the series name.

public string Label { get; } #

Gets the slice category label.

public double Value { get; } #

Gets the raw slice value.

public double Percent { get; } #

Gets the slice percentage as a ratio from zero to one.

public string FormattedValue { get; } #

Gets the slice value formatted with the chart value formatter.

public string FormattedPercent { get; } #

Gets the slice percentage formatted as display text.

public int PointIndex { get; } #

Gets the zero-based point index.