{ "cells": [ { "cell_type": "markdown", "id": "1f5bafcb-0750-4d39-9be5-3736baae9eb0", "metadata": {}, "source": [ "# Combining `waterfall_plot()` with Other Geometry Layers\n", "\n", "This notebook demonstrates how to enrich a waterfall plot with background and foreground layers. Foreground layers can be added using the regular `+` operator. To add background layers, use the new `background_layers` property.\n", "\n", "Limitations:\n", "- Layers must provide their own data\n", "- Data coordinates are expected to be numeric" ] }, { "cell_type": "code", "execution_count": 1, "id": "80a0cec9-510a-48c3-8412-1f5b867b74fd", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot import *\n", "from lets_plot.bistro import waterfall_plot" ] }, { "cell_type": "code", "execution_count": 2, "id": "39eabe85-6deb-4cef-b4cd-6ecb37e0b822", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "347c9a4e-bcdd-446c-b275-a9bf5a030f50", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "