Percentage stacked barcharts

Given a categorical column and multiple numeric columns, this component creates a percentage stacked bar chart. Data frame is grouped on categorical column and group-wise mean of values under each numeric individual column are taken. Here is an example with 't' as target:


data:
t c1 c2
a 10 20
a 20 30
b 5 10
b 15 20

Group-wise mean of data:
t c1 c2
a 15 25
b 10 15

Data is then normalized row-wise to get percentages, as:

t c1 c2
a 0.375 0.625
b 0.4 0.6

For each value of the target column, a stacked bar chart is plotted. The component uses python 'base' environment.

Options

Select numeric columns
Select numeric columns.
Discrete column
Select a categorical column
x-label font size
Enter Description
x-label rotation
Enter Description
figure width
Figure width in inches
figure height
Figure height in inches

Input Ports

Icon
Input your dataframe here

Output Ports

Icon
Output image of stacked bar chart

Nodes

Extensions

Links