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

Function _area_example_1

chartify/examples.py:312–325  ·  view source on GitHub ↗

# Stacked area

(total_quantity_by_month_and_fruit)

Source from the content-addressed store, hash-verified

310
311@_print_source
312def _area_example_1(total_quantity_by_month_and_fruit):
313 """# Stacked area"""
314 # Plot the data
315 ch = chartify.Chart(blank_labels=True, x_axis_type="datetime")
316 ch.set_title("Stacked area")
317 ch.set_subtitle("Represent changes in distribution.")
318 ch.plot.area(
319 data_frame=total_quantity_by_month_and_fruit,
320 x_column="month",
321 y_column="quantity",
322 color_column="fruit",
323 stacked=True,
324 )
325 ch.show(_OUTPUT_FORMAT)
326
327
328@_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