Interface PieArcDatum<T>

Element of the Arc Datums Array created by invoking the Pie generator.

The generic refers to the data type of an element in the input array passed into the Pie generator.

interface PieArcDatum {
    data: T;
    endAngle: number;
    index: number;
    padAngle: number;
    startAngle: number;
    value: number;
}

Type Parameters

  • T

Properties

data: T

The input datum; the corresponding element in the input data array of the Pie generator.

endAngle: number

The end angle of the arc. If the pie generator was configured to be used for the arc generator, then the units are in radians with 0 at -y (12 o’clock) and positive angles proceeding clockwise.

index: number

The zero-based sorted index of the arc.

padAngle: number

The pad angle of the arc. If the pie generator was configured to be used for the arc generator, than the units are in radians.

startAngle: number

The start angle of the arc. If the pie generator was configured to be used for the arc generator, then the units are in radians with 0 at -y (12 o’clock) and positive angles proceeding clockwise.

value: number

The numeric value of the arc.