Table of Contents

Class BOBChartSlice<TY>

Namespace
BlazOrbit.Charts.Models
Assembly
BlazOrbit.Charts.dll

A single slice of a Pie / Donut chart. Pie / Donut charts do not have an X axis, so they consume BOBChartSlice<TY> instead of BOBChartSeries<TX, TY>.

public sealed class BOBChartSlice<TY>

Type Parameters

TY

Numeric type of the slice value.

Inheritance
object
BOBChartSlice<TY>

Constructors

BOBChartSlice()

public BOBChartSlice()

Properties

Color

Optional explicit color. When null the color is drawn from the active palette in declaration order.

public string? Color { get; init; }

Property Value

string

Label

Display label of the slice (legend, tooltip, ARIA).

public string Label { get; init; }

Property Value

string

Value

The slice value. Slices are normalized to 100% at render time.

public TY Value { get; init; }

Property Value

TY