in chartify/examples.py [0:0]
def _bar_grouped_example_4(quantity_by_fruit_and_country):
"""Docstring"""
ch = chartify.Chart(blank_labels=True, x_axis_type="categorical")
ch.set_title("Grouped bar chart - Factor order")
ch.set_subtitle("Change categorical order with 'categorical_order_by'.")
ch.plot.bar(
data_frame=quantity_by_fruit_and_country,
categorical_columns=["country", "fruit"],
numeric_column="quantity",
color_column="country",
categorical_order_by="labels",
categorical_order_ascending=True,
)
ch.axes.set_xaxis_tick_orientation("vertical")
ch.show(_OUTPUT_FORMAT)