API Reference
Struct
ChartPieSliceLabelContext
Provides pie and donut slice values to custom slice label formatters.
Inheritance
- ValueType
- ChartPieSliceLabelContext
Usage
Explore 2 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
- Property ChartOptions.PieSliceLabelFormatter
Accepted by parameters 1
Constructors
public ChartPieSliceLabelContext(String seriesName, String label, Double value, Double percent, String formattedValue, String formattedPercent, Int32 pointIndex) #Initializes a new instance of the ChartPieSliceLabelContext struct.
Parameters
- seriesName System.String
- label System.String
- value System.Double
- percent System.Double
- formattedValue System.String
- formattedPercent System.String
- pointIndex System.Int32
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?
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 Int32 PointIndex { get; } #Gets the zero-based point index.