Stacked Bar Chart
Stacked bar chart showing the composition of categories within each group.
Stacked Bar Chart
Processing
Generates a stacked bar chart visualization showing the composition of categories (values) within each primary group (labels), segmented by a stacking category (groups). The quantitative data is aggregated according to the selected aggregation method. The original input data is passed through as output, allowing the data flow to continue after visualization.
Inputs
- labels
- The primary categorical data (X-axis labels) used to define the groups being compared.
- values
- The quantitative data points that will be aggregated (summed or counted) to determine the height of the bars (Y-axis values).
- groups
- The categorical data used to stack the bars and assign colors, showing the internal composition of each primary group.
Inputs Types
| Input | Types |
|---|---|
labels |
List, DataSeries, NDArray, DataRecords, DataFrame |
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
- labels
- The input labels data is passed through unchanged.
- values
- The input values data is passed through unchanged.
- groups
- The input groups data is passed through unchanged.
Outputs Types
| Output | Types |
|---|---|
labels |
List, DataSeries, NDArray, DataRecords, DataFrame |
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 Stacked Bar Chart brick contains some changeable options:
- Labels field
- Defines the field name used for labels (X-axis encoding) when processing complex data structures like DataFrames or DataRecords.
- Values field
- Defines the field name used for the quantitative values (Y-axis encoding) when processing complex data structures.
- Groups field
- Defines the field name used for the grouping and color encoding (stacking) when processing complex data structures.
- Data aggregation
- Specifies the aggregation method applied to the values field (e.g., sum or count) to determine the bar heights.
Brick Info
-
-