in chartify/examples.py [0:0]
def _text_example_1(price_and_quantity_by_country):
"""Plot text with scatter"""
# Plot the data
ch = chartify.Chart(blank_labels=True)
ch.plot.scatter(
data_frame=price_and_quantity_by_country,
x_column="total_price",
y_column="quantity",
color_column="country",
)
ch.style.color_palette.reset_palette_order()
ch.plot.text(
data_frame=price_and_quantity_by_country,
x_column="total_price",
y_column="quantity",
text_column="country",
color_column="country",
x_offset=1,
y_offset=-1,
font_size="10pt",
)
ch.set_title("Text")
ch.set_subtitle("Labels for specific observations.")
ch.show(_OUTPUT_FORMAT)