Bar example
()
| 387 | |
| 388 | @_print_source |
| 389 | def plot_bar(): |
| 390 | """ |
| 391 | Bar example |
| 392 | """ |
| 393 | import chartify |
| 394 | |
| 395 | # Generate example data |
| 396 | data = chartify.examples.example_data() |
| 397 | |
| 398 | quantity_by_fruit = data.groupby("fruit")["quantity"].sum().reset_index() |
| 399 | |
| 400 | print(quantity_by_fruit.head()) |
| 401 | """Print break""" |
| 402 | _bar_example_1(quantity_by_fruit) |
| 403 | _bar_example_2(quantity_by_fruit) |
| 404 | _bar_example_3(quantity_by_fruit) |
| 405 | _bar_example_4(quantity_by_fruit) |
| 406 | |
| 407 | |
| 408 | @_print_source |
nothing calls this directly
no test coverage detected