{ "cells": [ { "cell_type": "markdown", "id": "1f5bafcb-0750-4d39-9be5-3736baae9eb0", "metadata": {}, "source": [ "# Additional layers for waterfall_plot\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\n", "\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "80a0cec9-510a-48c3-8412-1f5b867b74fd", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from lets_plot import *\n", "from lets_plot.bistro import waterfall_plot\n", "\n", "import numpy as np\n", "import pandas as pd\n", "\n", "LetsPlot.setup_html() " ] }, { "cell_type": "code", "execution_count": 2, "id": "347c9a4e-bcdd-446c-b275-a9bf5a030f50", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "