Shimoku docs
Ask or search…
K
Comment on page

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',
)
Horizontal stacked bar

Variants

By setting the parameter variant to the following values the appearance of the chart can be changed:
Clean
Minimal
Thin
Clean Thin
Minimal Thin
Shadow
Clean Shadow
Minimal Shadow
variant="clean"
variant="minimal"
variant="thin"
variant="clean thin"
variant="minimal thin"
variant="shadow"
variant="clean shadow"
variant="minimal shadow"
Changing the Menu Path The menu_path can be modified.
It is possible to use any number of rows.