Pie Chart

Pie chart illustrating the proportion of each category within a whole.

Pie Chart

Processing

This function generates a Pie Chart visualization, illustrating the proportion of each category within a whole dataset based on the provided values and groups. The input data is passed through unchanged to allow chaining with subsequent bricks.

Inputs

values
The quantitative data used to determine the size of the pie slices.
groups
The categorical data used to define the groups or labels for the slices.

Inputs Types

Input Types
values List, DataSeries, NDArray, DataRecords, DataFrame
groups List, DataSeries, NDArray, DataRecords, DataFrame

You can check the list of supported types here: Available Type Hints.

Outputs

values
The quantitative data input, passed through unchanged.
groups
The categorical data input, passed through unchanged.

Outputs Types

Output Types
values List, DataSeries, NDArray, DataRecords, DataFrame
groups List, DataSeries, NDArray, DataRecords, DataFrame

You can check the list of supported types here: Available Type Hints.

Options

The Pie Chart brick contains some changeable options:

Values field
Specifies the column or field in the input data that contains the quantitative values (the size of the slices). (Default: values).
Groups field
Specifies the column or field in the input data that contains the categorical data used for labeling and coloring the slices. (Default: groups).
Data aggregation
Defines the aggregation method (sum or count) used for calculating the slice size when handling multiple records within the same group. (Default: count).

Brick Info

version v0.2.0
python 3.10, 3.11, 3.12, 3.13
requirements
    -