Stacked Density

Stacked density plot combines smooth curves for multiple groups, revealing overlaps and distribution trends.

Stacked Density


Graph

Creates a stacked density plot that combines smooth curves for multiple groups, revealing overlaps and distribution trends across different categories.

Inputs

x
The numerical data values for which density curves will be calculated
color
The categorical field used to group data into different density curves for stacking

Inputs Types

Input Types
x List, DataSeries, NDArray, DataRecords, DataFrame
color List, DataSeries, NDArray, DataRecords, DataFrame

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

Outputs

x
The original input data passed through unchanged.
color
The original input data passed through unchanged.

Outputs Types

Output Types
x 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 Stacked Density brick contains some changeable options:

'x' data field
Specifies the field name for the x-axis data values in the density calculation
Aggregation field
Defines the field name used for color-based grouping and aggregation of density curves
Smoothed counts
Toggle to use smoothed counts instead of probability density values in the visualization

Brick Info

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