Box example
()
| 1372 | |
| 1373 | @_print_source |
| 1374 | def callout_box(): |
| 1375 | """ |
| 1376 | Box example |
| 1377 | """ |
| 1378 | import chartify |
| 1379 | |
| 1380 | # Generate example data |
| 1381 | data = chartify.examples.example_data() |
| 1382 | |
| 1383 | # Plot the data |
| 1384 | ( |
| 1385 | chartify.Chart(blank_labels=True) |
| 1386 | .plot.scatter(data_frame=data, x_column="total_price", y_column="unit_price") |
| 1387 | .callout.box(top=1, bottom=-1, color="red") |
| 1388 | .callout.box(top=2, left=4, color="blue") |
| 1389 | .callout.box(bottom=2, right=3, color="green") |
| 1390 | .set_title("Shaded area callout") |
| 1391 | .set_subtitle("Highlight notable areas of your chart") |
| 1392 | .show(_OUTPUT_FORMAT) |
| 1393 | ) |
| 1394 | |
| 1395 | |
| 1396 | callout_box.__doc__ = _core.callout.Callout.box.__doc__ |
nothing calls this directly
no test coverage detected