PieChartTypes: {
    LabelsInsideSlices: typeof PieChartWithLabelsInsideSlices;
    LabelsOnSides: typeof PieChartWithLabelsOnSides;
} = ...

Collection of PieChart implementations. Each option can have their own visual design, and API for customization of it.

This must be specified when the PieChart is created (or default one will be used).

Example usage:

// Create a PieChart with specified type
LightningChart.Pie({ type: PieChartTypes.LabelsInsideSlices })

Type declaration

  • LabelsInsideSlices: typeof PieChartWithLabelsInsideSlices

    Pie Chart type, where Slice Labels inside the Slices. Works well when Label texts are short and there are not a lot of Slices, as the actual Pie has more space.

  • LabelsOnSides: typeof PieChartWithLabelsOnSides

    Pie Chart type, where Slice Labels are positioned on the left and right sides of Chart. Labels are connected to their Slices with lines, which can be styled using unique API for this Pie Chart type.