# Line with datetime x axis
(price_by_date)
| 365 | |
| 366 | @_print_source |
| 367 | def _shaded_interval_example_1(price_by_date): |
| 368 | """# Line with datetime x axis""" |
| 369 | # Plot the data |
| 370 | ch = chartify.Chart(blank_labels=True, x_axis_type="datetime") |
| 371 | ch.set_title("Area with second_y_column") |
| 372 | ch.set_subtitle("Use alone or combined with line graphs to represent confidence.") |
| 373 | ch.plot.area( |
| 374 | data_frame=price_by_date, |
| 375 | x_column="date", |
| 376 | y_column="lower_ci", |
| 377 | second_y_column="upper_ci", |
| 378 | ) |
| 379 | # Reset to ensure same color of line & shaded interval |
| 380 | ch.style.color_palette.reset_palette_order() |
| 381 | ch.plot.line(data_frame=price_by_date, x_column="date", y_column="mean") |
| 382 | ch.show(_OUTPUT_FORMAT) |
| 383 | |
| 384 | |
| 385 | plot_area.__doc__ = _core.plot.PlotNumericXY.area.__doc__ |
no test coverage detected