{ "cells": [ { "cell_type": "markdown", "id": "5f34671d-f41e-4c8a-ba33-22807b3069ba", "metadata": {}, "source": [ "# Layer Labels (Annotations) on Waterfall Plot" ] }, { "cell_type": "code", "execution_count": 1, "id": "e0f29545-fd87-4343-b5e9-e0a89fc8674a", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from lets_plot import *\n", "from lets_plot.bistro import *\n", "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 2, "id": "f2323c7a-5f78-4e6d-974d-da7721d9ddb8", "metadata": {}, "outputs": [], "source": [ "data = {\n", " 'stage': [\"A\", \"B\", \"C\", \"D\", \"E\", \"F\"],\n", " 'count': [598, -264, 156, -4, 330, -85],\n", " 'pct': [100, 44.14, 46.71, 1.81, 67.9, 10.41],\n", "}" ] }, { "cell_type": "markdown", "id": "cf46f8de-f5fb-45ad-a539-58c91d2081b6", "metadata": {}, "source": [ "#### Default Labels" ] }, { "cell_type": "code", "execution_count": 3, "id": "ecf8821c-5672-4f88-9436-9b42ec55922f", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "