Pie Chart
Pie chart illustrating the proportion of each category within a whole.
Pie Chart
Graph
Creates a pie chart visualization that illustrates the proportion of each category within a whole.
Inputs
- theta
- The data values that determine the size of each pie slice. This represents the quantitative data to be aggregated and displayed as proportions.
- color
- The categorical data that defines different groups or categories. Each unique value in this input will be represented as a different colored segment in the pie chart.
Inputs Types
Input | Types |
---|---|
theta |
List , DataSeries , NDArray , DataRecords , DataFrame |
color |
List , DataSeries , NDArray , DataRecords , DataFrame |
You can check the list of supported types here: Available Type Hints.
Outputs
- theta
- The processed theta data ready for chart rendering, maintaining the same structure as the input.
- color
- The processed color data ready for chart rendering, maintaining the same structure as the input.
Outputs Types
Output | Types |
---|---|
theta |
List , DataSeries , NDArray , DataRecords , DataFrame |
color |
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:
- 'theta' data field
- Specifies which field from the input data should be used for the theta (size) encoding of the pie slices.
- Groups field
- Specifies which field from the input data should be used for the color (category) encoding to differentiate between pie segments.
- Data aggregation
- Determines how the data values should be aggregated for each category. Options include "sum" (aggregate by summing values) or "count" (aggregate by counting occurrences).
Brick Info
version
v0.1.4
python
3.10,
3.11,
3.12,
3.13
requirements
-
-