MCPcopy Create free account
hub / github.com/spotify/chartify / _area_example_2

Function _area_example_2

chartify/examples.py:329–341  ·  view source on GitHub ↗

# Unstacked area chart

(total_quantity_by_month_and_fruit)

Source from the content-addressed store, hash-verified

327
328@_print_source
329def _area_example_2(total_quantity_by_month_and_fruit):
330 """# Unstacked area chart"""
331 ch = chartify.Chart(blank_labels=True, x_axis_type="datetime")
332 ch.set_title("Unstacked area")
333 ch.set_subtitle("Show overlapping values. Automatically adjusts opacity.")
334 ch.plot.area(
335 data_frame=total_quantity_by_month_and_fruit,
336 x_column="month",
337 y_column="quantity",
338 color_column="fruit",
339 stacked=False,
340 )
341 ch.show(_OUTPUT_FORMAT)
342
343
344@_print_source

Callers 1

plot_areaFunction · 0.85

Calls 4

set_titleMethod · 0.95
set_subtitleMethod · 0.95
showMethod · 0.95
areaMethod · 0.45

Tested by

no test coverage detected