Stacked Horizontal Bar

A stacked horizontal bar chart shows the composition of each category in a stacked bar, with each segment representing a sub-category. The bars are oriented horizontally so it's useful when there are lot's of labels or when the labels are very lengthy.

Using the same data as the stacked bar example:

s.plt.stacked_horizontal_bar(
    data=pd.read_csv('file.csv'), x="Segment", order=0,
    x_axis_name='Distribution and weight of the Drivers',
)

Variants

By setting the parameter variant to the following values the appearance of the chart can be changed:

Changing the Menu Path The menu_path can be modified.

Using the Grid

It is possible to use any number of rows.

Last updated