# Stacked area
(total_quantity_by_month_and_fruit)
| 310 | |
| 311 | @_print_source |
| 312 | def _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 |
no test coverage detected