def _scatter_categorical_example()

in chartify/examples.py [0:0]


def _scatter_categorical_example(high_low):
    """Scatter categorical example"""
    # Plot the data
    ch = chartify.Chart(blank_labels=True, y_axis_type="categorical")
    ch.set_title("Scatter plot with categorical y-axis")
    ch.plot.scatter(
        data_frame=high_low,
        categorical_columns="fruit",
        numeric_column="max",
        marker="circle",
    )
    ch.plot.scatter(
        data_frame=high_low,
        categorical_columns="fruit",
        numeric_column="min",
        marker="square",
    )
    ch.show(_OUTPUT_FORMAT)