Description of expected behavior and the observed behavior
Attempted to plot example using the bokeh backend with stacked=False produced KeyError: "Dimension('country', label='Country') not found.".
Plotting the same example using only the matplotlib backend works.
Also plotting the same example using the pandas dataframe rather than the holoviews dataset works.
Complete, minimal, self-contained example code that reproduces the issue
ALL software version info
holoviews '1.14.2' bokeh '2.2.3'
All packages
``` # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_gnu conda-forge abseil-cpp 20200923.3 h9c3ff4c_0 conda-forge absl-py 0.12.0 pypi_0 pypi adal 1.2.6 pyh44b312d_0 conda-forge affine 2.3.0 py_0 conda-forge aiohttp 3.7.4 py38h497a2fe_0 conda-forge alabaster 0.7.12 py_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge argon2-cffi 20.1.0 py38h497a2fe_2 conda-forge arrow-cpp 3.0.0 py38h6da0e5f_9_cpu conda-forge asgiref 3.3.1 pyhd8ed1ab_0 conda-forge asn1crypto 1.4.0 pyh9f0ad1d_0 conda-forge astroid 2.4.1 py38h32f6830_0 conda-forge async-timeout 3.0.1 py_1000 conda-forge async_generator 1.10 py_0 conda-forge atk-1.0 2.36.0 h3371d22_4 conda-forge attrs 20.3.0 pyhd3deb0d_0 conda-forge aws-c-cal 0.4.5 h76129ab_8 conda-forge aws-c-common 0.5.2 h7f98852_0 conda-forge aws-c-event-stream 0.2.7 h6bac3ce_1 conda-forge aws-c-io 0.9.1 ha5b09cb_1 conda-forge aws-checksums 0.1.11 h99e32c3_3 conda-forge aws-logging-handlers 2.0.5 pypi_0 pypi aws-sdk-cpp 1.8.151 hceb1b1e_1 conda-forge babel 2.9.0 pyhd3deb0d_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.1 py_0 conda-forge bandit 1.7.0 py38h578d9bd_0 conda-forge bcrypt 3.2.0 py38h497a2fe_1 conda-forge beautifulsoup4 4.9.3 pyhb0f4dca_0 conda-forge black 20.8b1 py_1 conda-forge bleach 3.3.0 pyh44b312d_0 conda-forge blinker 1.4 py_1 conda-forge blosc 1.21.0 h9c3ff4c_0 conda-forge bokeh 2.2.3 py38h578d9bd_0 conda-forge boost-cpp 1.74.0 hc6e9bd1_2 conda-forge boto 2.49.0 py_0 conda-forge boto3 1.17.33 pyhd8ed1ab_0 conda-forge botocore 1.20.33 pyhd8ed1ab_0 conda-forge bottleneck 1.3.2 py38h5c078b8_3 conda-forge branca 0.4.2 pyhd8ed1ab_0 conda-forge brotli 1.0.9 h9c3ff4c_4 conda-forge brotlipy 0.7.0 py38h497a2fe_1001 conda-forge bs4 4.9.3 0 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.17.1 h7f98852_1 conda-forge ca-certificates 2020.12.5 ha878542_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cachetools 4.2.1 pyhd8ed1ab_0 conda-forge cairo 1.16.0 h7979940_1007 conda-forge cartopy 0.18.0 py38hab71064_13 conda-forge certifi 2020.12.5 py38h578d9bd_1 conda-forge cffi 1.14.5 py38ha65f79e_0 conda-forge cfgv 3.2.0 py_0 conda-forge cfitsio 3.470 hb418390_7 conda-forge cftime 1.4.1 py38h5c078b8_0 conda-forge chardet 4.0.0 py38h578d9bd_1 conda-forge click 7.1.2 pyh9f0ad1d_0 conda-forge click-plugins 1.1.1 py_0 conda-forge cligj 0.7.1 pyhd8ed1ab_0 conda-forge cloudpickle 1.6.0 py_0 conda-forge cmasher 1.5.10 pyhd8ed1ab_0 conda-forge colorama 0.4.4 pyh9f0ad1d_0 conda-forge colorcet 2.0.6 pyhd8ed1ab_0 conda-forge colorspacious 1.1.2 pyh24bf2e0_0 conda-forge contextily 1.1.0 pyhd8ed1ab_0 conda-forge coverage 5.5 py38h497a2fe_0 conda-forge croniter 0.3.36 pyhd8ed1ab_0 conda-forge cryptography 3.4.6 py38ha5dfef3_0 conda-forge cssselect 1.1.0 py_0 conda-forge curl 7.75.0 h979ede3_0 conda-forge cycler 0.10.0 py_2 conda-forge cython 0.29.22 py38h709712a_0 conda-forge cytoolz 0.11.0 py38h497a2fe_3 conda-forge dask 2.14.0 py_0 conda-forge dask-core 2.14.0 py_0 conda-forge dask-gateway 0.6.1 py38_0 conda-forge dask-geopandas 0+untagged.18.g6fd01e5 pypi_0 pypi dask-kubernetes 2021.3.0 pyhd8ed1ab_0 conda-forge dataclasses 0.8 pyhc8e2a94_1 conda-forge datashader 0.12.1 pyh44b312d_0 conda-forge datashape 0.5.4 py_1 conda-forge dbus 1.13.6 hfdff14a_1 conda-forge decorator 4.4.2 py_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge deprecated 1.2.10 pyh9f0ad1d_0 conda-forge descartes 1.1.0 py_4 conda-forge distlib 0.3.1 pyh9f0ad1d_0 conda-forge distributed 2.14.0 py38h32f6830_0 conda-forge django 3.1.7 pyhd8ed1ab_0 conda-forge docker-py 4.4.4 py38h578d9bd_0 conda-forge docker-pycreds 0.4.0 py_0 conda-forge docutils 0.16 py38h578d9bd_3 conda-forge dodgy 0.2.1 py_0 conda-forge doit 0.33.1 py38h32f6830_1 conda-forge e13tools 0.9.5 py_0 conda-forge editdistance 0.5.3 py38h709712a_3 conda-forge entrypoints 0.3 pyhd8ed1ab_1003 conda-forge esda 2.3.6 pyhd8ed1ab_0 conda-forge et_xmlfile 1.0.1 py_1001 conda-forge expat 2.2.10 h9c3ff4c_0 conda-forge fastparquet 0.5.0 py38h5c078b8_0 conda-forge filelock 3.0.12 pyh9f0ad1d_0 conda-forge fiona 1.8.18 py38h58f84aa_1 conda-forge firefox 87.0 h9c3ff4c_0 conda-forge flake8 3.8.4 py_0 conda-forge flake8-polyfill 1.0.2 py_0 conda-forge folium 0.12.0 pyhd8ed1ab_1 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 2.001 hab24e00_0 conda-forge font-ttf-source-code-pro 2.030 hab24e00_0 conda-forge font-ttf-ubuntu 0.83 hab24e00_0 conda-forge fontconfig 2.13.1 hba837de_1004 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge freetype 2.10.4 h0708190_1 conda-forge freexl 1.0.6 h7f98852_0 conda-forge fribidi 1.0.10 h36c2ea0_0 conda-forge frosted 1.4.1 py_1 conda-forge fsspec 0.8.7 pyhd8ed1ab_0 conda-forge fuzzywuzzy 0.18.0 pyhd8ed1ab_0 conda-forge fzf 0.26.0 ha8f183a_0 conda-forge gcsfs 0.7.2+7.g85eb018 pypi_0 pypi gdal 3.2.1 py38hc0b2d6b_7 conda-forge gdk-pixbuf 2.42.2 h0c95a7a_2 conda-forge geckodriver 0.29.0 h3146498_0 conda-forge geographiclib 1.50 py_0 conda-forge geojson 2.5.0 py_0 conda-forge geopandas 0.9.0 pyhd8ed1ab_0 conda-forge geopy 2.1.0 pyhd3deb0d_0 conda-forge geos 3.9.1 h9c3ff4c_2 conda-forge geotiff 1.6.0 h2b14fbe_4 conda-forge geoviews 1.8.2 py_0 conda-forge geoviews-core 1.8.2 py_0 conda-forge gettext 0.19.8.1 h0b5b191_1005 conda-forge gflags 2.2.2 he1b5a44_1004 conda-forge gh 1.6.2 ha8f183a_0 conda-forge giddy 2.2.2 py_0 conda-forge giflib 5.2.1 h36c2ea0_2 conda-forge git 2.30.2 pl5320h6697202_0 conda-forge gitdb 4.0.5 pyhd8ed1ab_1 conda-forge gitpython 3.1.14 pyhd8ed1ab_0 conda-forge glib 2.68.0 h9c3ff4c_1 conda-forge glib-tools 2.68.0 h9c3ff4c_1 conda-forge glog 0.4.0 h49b9bf7_3 conda-forge gmaps 0.9.0 py_0 conda-forge google-api-core 1.25.1 pyhd8ed1ab_0 conda-forge google-auth 1.24.0 pyhd3deb0d_0 conda-forge google-auth-oauthlib 0.4.2 pyhd8ed1ab_0 conda-forge google-cloud-core 1.5.0 pyhd3deb0d_0 conda-forge google-cloud-storage 1.31.2 pyh9f0ad1d_0 conda-forge google-crc32c 1.1.2 py38h8838a9a_0 conda-forge google-resumable-media 1.2.0 pyhd3deb0d_0 conda-forge googleapis-common-protos 1.52.0 py38h578d9bd_1 conda-forge googlemaps 2.5.1 py_0 conda-forge graphite2 1.3.13 h58526e2_1001 conda-forge graphviz 2.47.0 h93c640b_0 conda-forge grpc-cpp 1.36.4 h7919d58_0 conda-forge grpcio 1.36.1 py38hdd6454d_0 conda-forge gst-plugins-base 1.18.4 h29181c9_0 conda-forge gstreamer 1.18.4 h76c114f_0 conda-forge gtk2 2.24.33 hab0c2f8_0 conda-forge gts 0.7.6 h64030ff_2 conda-forge h5py 3.1.0 nompi_py38hafa665b_100 conda-forge harfbuzz 2.8.0 h83ec7ef_0 conda-forge haversine 2.3.0 py_0 conda-forge hdf4 4.2.13 h10796ff_1004 conda-forge hdf5 1.10.6 nompi_h6a2412b_1114 conda-forge heapdict 1.0.1 py_0 conda-forge holoviews 1.14.2 pyhd8ed1ab_0 conda-forge html5lib 1.1 pyh9f0ad1d_0 conda-forge htop 3.0.5 h46c0cb4_0 conda-forge hvplot 0.7.1 pyh44b312d_0 conda-forge hypothesis 6.8.1 pyhd8ed1ab_0 conda-forge icc_rt 2020.2 intel_254 numba icu 68.1 h58526e2_0 conda-forge identify 2.1.4 pyhd8ed1ab_0 conda-forge idna 2.10 pyh9f0ad1d_0 conda-forge imagesize 1.2.0 py_0 conda-forge importlib-metadata 3.7.3 py38h578d9bd_0 conda-forge importlib_resources 5.1.2 py38h578d9bd_0 conda-forge importnb 0.7.0 pyhd8ed1ab_0 conda-forge iniconfig 1.1.1 pyh9f0ad1d_0 conda-forge ipykernel 5.5.0 py38h81c977d_1 conda-forge ipython 7.21.0 py38h81c977d_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge ipywidgets 7.6.3 pyhd3deb0d_0 conda-forge isort 4.3.21 py38h32f6830_1 conda-forge jdcal 1.4.1 py_0 conda-forge jedi 0.18.0 py38h578d9bd_2 conda-forge jinja2 2.11.3 pyh44b312d_0 conda-forge jmespath 0.10.0 pyh9f0ad1d_0 conda-forge joblib 1.0.1 pyhd8ed1ab_0 conda-forge jpeg 9d h36c2ea0_0 conda-forge json-c 0.15 h98cffda_0 conda-forge jsonschema 3.2.0 pyhd8ed1ab_3 conda-forge jupyter_client 6.1.12 pyhd8ed1ab_0 conda-forge jupyter_core 4.7.1 py38h578d9bd_0 conda-forge jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge jupyterlab_widgets 1.0.0 pyhd8ed1ab_1 conda-forge kartothek 4.0.0 pyhd8ed1ab_0 conda-forge kealib 1.4.14 hcc255d8_2 conda-forge kiwisolver 1.3.1 py38h1fd1430_1 conda-forge krb5 1.17.2 h926e7f8_0 conda-forge kubernetes 1.18.8 0 conda-forge kubernetes-client 1.18.8 haa36a5b_0 conda-forge kubernetes-helm 3.5.2 h519d9b9_0 conda-forge kubernetes-node 1.18.8 haa36a5b_0 conda-forge kubernetes-server 1.18.8 haa36a5b_0 conda-forge kubernetes_asyncio 12.0.1 pyh9f0ad1d_0 conda-forge lazy-object-proxy 1.4.3 py38h1e0a361_2 conda-forge lcms2 2.12 hddcbb42_0 conda-forge ld_impl_linux-64 2.35.1 hea4e1c9_2 conda-forge libblas 3.9.0 8_openblas conda-forge libcblas 3.9.0 8_openblas conda-forge libclang 11.1.0 default_ha53f305_0 conda-forge libcrc32c 1.1.1 h9c3ff4c_2 conda-forge libcurl 7.75.0 hc4aaa36_0 conda-forge libdap4 3.20.6 hd7c4107_1 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 h516909a_1 conda-forge libevent 2.1.10 hcdb4288_3 conda-forge libffi 3.3 h58526e2_2 conda-forge libgcc-ng 9.3.0 h2828fa1_18 conda-forge libgd 2.3.0 h47910db_1 conda-forge libgdal 3.2.1 h38ff51b_7 conda-forge libgfortran-ng 9.3.0 hff62375_18 conda-forge libgfortran5 9.3.0 hff62375_18 conda-forge libglib 2.68.0 h3e27bee_1 conda-forge libgomp 9.3.0 h2828fa1_18 conda-forge libiconv 1.16 h516909a_0 conda-forge libkml 1.3.0 h02e6976_1012 conda-forge liblapack 3.9.0 8_openblas conda-forge libllvm10 10.0.1 he513fc3_3 conda-forge libllvm11 11.1.0 hf817b99_0 conda-forge libnetcdf 4.7.4 nompi_h56d31a8_107 conda-forge libnghttp2 1.43.0 h812cca2_0 conda-forge libnl 3.5.0 h7f98852_0 conda-forge libopenblas 0.3.12 pthreads_h4812303_1 conda-forge libpng 1.6.37 h21135ba_2 conda-forge libpostal 1.1.0 h38d415c_2 conda-forge libpq 13.1 hfd2b0eb_2 conda-forge libprotobuf 3.15.6 h780b84a_0 conda-forge libpysal 4.4.0 pyhd8ed1ab_0 conda-forge librsvg 2.50.3 hfa39831_1 conda-forge librttopo 1.1.0 h1185371_6 conda-forge libsodium 1.0.18 h36c2ea0_1 conda-forge libspatialindex 1.9.3 h9c3ff4c_3 conda-forge libspatialite 5.0.1 he52d314_3 conda-forge libssh2 1.9.0 ha56f1ee_6 conda-forge libstdcxx-ng 9.3.0 h6de172a_18 conda-forge libthrift 0.14.1 he6d91bd_1 conda-forge libtiff 4.2.0 hdc55705_0 conda-forge libtool 2.4.6 h58526e2_1007 conda-forge libutf8proc 2.6.1 h7f98852_0 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libwebp 1.2.0 h3452ae3_0 conda-forge libwebp-base 1.2.0 h7f98852_2 conda-forge libxcb 1.13 h7f98852_1003 conda-forge libxkbcommon 1.0.3 he3ba5ed_0 conda-forge libxml2 2.9.10 h72842e0_3 conda-forge libxslt 1.1.33 h15afd5d_2 conda-forge llvmlite 0.36.0 py38h4630a5e_0 conda-forge locket 0.2.0 py_2 conda-forge logilab-common 1.7.3 py_0 conda-forge loguru 0.5.3 py38h32f6830_2 conda-forge lxml 4.6.2 py38hf1fe3a4_1 conda-forge lz4 3.1.3 py38hebdc3cf_0 conda-forge lz4-c 1.9.3 h9c3ff4c_0 conda-forge lzo 2.10 h516909a_1000 conda-forge mapclassify 2.4.2 pyhd8ed1ab_0 conda-forge markdown 3.3.4 pyhd8ed1ab_0 conda-forge markupsafe 1.1.1 py38h497a2fe_3 conda-forge marshmallow 3.10.0 pyhd8ed1ab_0 conda-forge marshmallow-oneofschema 2.1.0 pyhd8ed1ab_0 conda-forge matplotlib 3.3.4 py38h578d9bd_0 conda-forge matplotlib-base 3.3.4 py38h0efea84_0 conda-forge matplotlib-scalebar 0.7.2 pypi_0 pypi mccabe 0.6.1 py_1 conda-forge mercantile 1.1.6 pyh9f0ad1d_0 conda-forge milksnake 0.1.5 py_0 conda-forge mip 1.13.0 pypi_0 pypi mistune 0.8.4 py38h497a2fe_1003 conda-forge mock 4.0.3 py38h578d9bd_1 conda-forge more-itertools 8.7.0 pyhd8ed1ab_0 conda-forge movingpandas 0.5rc1 pypi_0 pypi mplleaflet 0.0.5 py_4 conda-forge msgpack-python 1.0.2 py38h1fd1430_1 conda-forge multidict 5.1.0 py38h497a2fe_1 conda-forge multipledispatch 0.6.0 py_0 conda-forge munch 2.5.0 py_0 conda-forge murmurhash 1.0.5 py38h709712a_0 conda-forge mypy 0.812 pyhd8ed1ab_0 conda-forge mypy_extensions 0.4.3 py38h578d9bd_3 conda-forge mysql-common 8.0.23 ha770c72_1 conda-forge mysql-libs 8.0.23 h935591d_1 conda-forge natsort 7.1.1 pyhd8ed1ab_0 conda-forge nbclient 0.5.3 pyhd8ed1ab_0 conda-forge nbconvert 6.0.7 py38h578d9bd_3 conda-forge nbformat 5.1.2 pyhd8ed1ab_1 conda-forge nbval 0.9.6 pyh9f0ad1d_0 conda-forge ncurses 6.2 h58526e2_4 conda-forge nest-asyncio 1.4.3 pyhd8ed1ab_0 conda-forge netcdf4 1.5.6 nompi_py38h1cdf482_100 conda-forge networkx 2.5 py_0 conda-forge nodeenv 1.5.0 pyh9f0ad1d_0 conda-forge notebook 6.3.0 py38h578d9bd_0 conda-forge nspr 4.30 h9c3ff4c_0 conda-forge nss 3.63 hb5efdd6_0 conda-forge numba 0.53.0 py38h5e62926_1 conda-forge numexpr 2.7.3 py38h51da96c_0 conda-forge numpy 1.20.1 py38h18fd61f_0 conda-forge oauthlib 3.0.1 py_0 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge openjpeg 2.4.0 hf7af979_0 conda-forge openpyxl 3.0.7 pyhd8ed1ab_0 conda-forge openssl 1.1.1j h7f98852_0 conda-forge orc 1.6.7 heec2584_1 conda-forge ortools 8.2.8710 pypi_0 pypi osmnx 1.0.1 pyhd3deb0d_0 conda-forge owslib 0.23.0 pyhd8ed1ab_0 conda-forge p7zip 16.02 he1b5a44_1000 conda-forge packaging 20.9 pyh44b312d_0 conda-forge palettable 3.3.0 py_0 conda-forge pandas 1.2.3 py38h51da96c_0 conda-forge pandas-flavor 0.2.0 py_0 conda-forge pandera 0.6.2 pyhd8ed1ab_0 conda-forge pandoc 2.12 h7f98852_0 conda-forge pandocfilters 1.4.2 py_1 conda-forge panel 0.10.3 pyhd8ed1ab_0 conda-forge pango 1.42.4 h69149e4_5 conda-forge param 1.10.1 pyhd3deb0d_0 conda-forge paramiko 2.7.2 pyh9f0ad1d_0 conda-forge parquet-cpp 1.5.1 2 conda-forge parso 0.8.1 pyhd8ed1ab_0 conda-forge partd 1.1.0 py_0 conda-forge pathspec 0.8.1 pyhd3deb0d_0 conda-forge patsy 0.5.1 py_0 conda-forge pbr 5.5.1 pyh9f0ad1d_0 conda-forge pcre 8.44 he1b5a44_0 conda-forge pendulum 2.1.2 pyhd8ed1ab_1 conda-forge pep8-naming 0.10.0 pyh9f0ad1d_0 conda-forge perl 5.32.0 h36c2ea0_0 conda-forge pexpect 4.8.0 pyh9f0ad1d_2 conda-forge phantomjs 2.1.1 1 conda-forge pickleshare 0.7.5 py_1003 conda-forge pies 2.6.7 py38h32f6830_1001 conda-forge pillow 8.1.2 py38ha0e1e83_0 conda-forge pip 21.0.1 pyhd8ed1ab_0 conda-forge pixman 0.40.0 h36c2ea0_0 conda-forge pluggy 0.13.1 py38h578d9bd_4 conda-forge polygon-geohasher 0.0.1 py_0 conda-forge poppler 0.89.0 h2de54a5_5 conda-forge poppler-data 0.4.10 0 conda-forge postal 1.1.9 py38h497a2fe_1 conda-forge postgresql 13.1 h6303168_2 conda-forge pre-commit 2.11.1 py38h578d9bd_0 conda-forge prefect 0.13.7 py_0 conda-forge proj 7.2.0 h277dcde_2 conda-forge prometheus_client 0.9.0 pyhd3deb0d_0 conda-forge prompt-toolkit 3.0.17 pyha770c72_0 conda-forge prospector 1.3.1 pyhd8ed1ab_0 conda-forge protobuf 3.15.6 py38h709712a_0 conda-forge psutil 5.8.0 py38h497a2fe_1 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge py 1.10.0 pyhd3deb0d_0 conda-forge pyarrow 3.0.0 py38h92f0514_9_cpu conda-forge pyasn1 0.4.8 py_0 conda-forge pyasn1-modules 0.2.7 py_0 conda-forge pycodestyle 2.6.0 pyh9f0ad1d_0 conda-forge pycparser 2.20 pyh9f0ad1d_2 conda-forge pyct 0.4.6 py_0 conda-forge pyct-core 0.4.6 py_0 conda-forge pydantic 1.8.1 py38h497a2fe_1 conda-forge pydocstyle 6.0.0 pyhd8ed1ab_0 conda-forge pyepsg 0.4.0 py_0 conda-forge pyflakes 2.2.0 pyh9f0ad1d_0 conda-forge pygeos 0.9 py38h4fc1155_4 conda-forge pygments 2.8.1 pyhd8ed1ab_0 conda-forge pyinotify 0.9.6 py38h578d9bd_1003 conda-forge pyjanitor 0.20.13 pyhd8ed1ab_0 conda-forge pyjwt 2.0.1 pyhd8ed1ab_0 conda-forge pykdtree 1.3.4 py38h0b5ebd8_0 conda-forge pylama 7.7.1 py_0 conda-forge pylint 2.5.3 py38h32f6830_0 conda-forge pylint-celery 0.3 py_1 conda-forge pylint-django 2.0.11 py_0 conda-forge pylint-flask 0.6 py_0 conda-forge pylint-plugin-utils 0.6 pyhd8ed1ab_0 conda-forge pynacl 1.4.0 py38h497a2fe_2 conda-forge pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyproj 3.0.1 py38h16ecdd7_0 conda-forge pyqt 5.12.3 py38h578d9bd_7 conda-forge pyqt-impl 5.12.3 py38h7400c14_7 conda-forge pyqt5-sip 4.19.18 py38h709712a_7 conda-forge pyqtchart 5.12 py38h7400c14_7 conda-forge pyqtwebengine 5.12.1 py38h7400c14_7 conda-forge pyroma 3.1 pypi_0 pypi pyrsistent 0.17.3 py38h497a2fe_2 conda-forge pysal 2.1.0 py_0 conda-forge pyshp 2.1.3 pyh44b312d_0 conda-forge pysocks 1.7.1 py38h578d9bd_3 conda-forge pytables 3.6.1 py38hc386592_3 conda-forge pytest 6.2.2 py38h578d9bd_0 conda-forge pytest-cov 2.11.1 pyh44b312d_0 conda-forge pytest-vcr 1.0.2 pyh9f0ad1d_0 conda-forge python 3.8.8 hffdb5ce_0_cpython conda-forge python-blosc 1.10.2 py38h51da96c_0 conda-forge python-box 4.2.3 py_0 conda-forge python-dateutil 2.8.1 py_0 conda-forge python-docx 0.8.10 py_0 conda-forge python-dotenv 0.15.0 pyhd8ed1ab_0 conda-forge python-geohash 0.8.5 py38h950e882_2 conda-forge python-graphviz 0.16 pyh243d235_2 conda-forge python-kubernetes 12.0.1 pyhd3deb0d_0 conda-forge python-levenshtein 0.12.2 py38h497a2fe_0 conda-forge python-slugify 4.0.1 pyh9f0ad1d_0 conda-forge python-snappy 0.6.0 py38h49bdff1_0 conda-forge python_abi 3.8 1_cp38 conda-forge pytz 2021.1 pyhd8ed1ab_0 conda-forge pytzdata 2020.1 pyh9f0ad1d_0 conda-forge pyviz_comms 2.0.1 pyhd3deb0d_0 conda-forge pyyaml 5.4.1 py38h497a2fe_0 conda-forge pyzmq 22.0.3 py38h2035c66_1 conda-forge qt 5.12.9 hda022c4_4 conda-forge rasterio 1.2.1 py38h57accd2_2 conda-forge re2 2020.11.01 h58526e2_0 conda-forge readline 8.0 he28a2e2_2 conda-forge regex 2021.3.17 py38h497a2fe_0 conda-forge requests 2.25.1 pyhd3deb0d_0 conda-forge requests-oauthlib 1.3.0 pyh9f0ad1d_0 conda-forge requirements-detector 0.7 py38h32f6830_1 conda-forge retrying 1.3.3 py_2 conda-forge rsa 4.7.2 pyh44b312d_0 conda-forge rtree 0.9.7 py38h02d302b_1 conda-forge ruamel.yaml 0.16.12 py38h497a2fe_2 conda-forge ruamel.yaml.clib 0.2.2 py38h497a2fe_2 conda-forge s2n 1.0.0 h9b69904_0 conda-forge s3fs 0.4.2 py_0 conda-forge s3transfer 0.3.6 pyhd8ed1ab_0 conda-forge scikit-learn 0.24.1 py38h658cfdd_0 conda-forge scipy 1.6.1 py38hb2138dd_0 conda-forge seaborn 0.11.1 hd8ed1ab_1 conda-forge seaborn-base 0.11.1 pyhd8ed1ab_1 conda-forge selenium 3.141.0 py38h497a2fe_1002 conda-forge send2trash 1.5.0 py_0 conda-forge setoptconf 0.2.0 py38h578d9bd_1004 conda-forge setuptools 49.6.0 py38h578d9bd_3 conda-forge shapely 1.7.1 py38h4fc1155_4 conda-forge simplejson 3.17.2 py38h497a2fe_2 conda-forge simplekv 0.14.1 pyh9f0ad1d_0 conda-forge six 1.15.0 pyh9f0ad1d_0 conda-forge smartystreets-python-sdk 4.7.3 pypi_0 pypi smmap 3.0.5 pyh44b312d_0 conda-forge snappy 1.1.8 he1b5a44_3 conda-forge snowballstemmer 2.1.0 pyhd8ed1ab_0 conda-forge snuggs 1.4.7 py_0 conda-forge sortedcontainers 2.3.0 pyhd8ed1ab_0 conda-forge soupsieve 2.0.1 py_1 conda-forge spaghetti 1.5.6 pyhd8ed1ab_0 conda-forge spatialpandas 0.4.0a1.post2+g4d679f9 pypi_0 pypi sphinx 3.5.3 pyhd8ed1ab_0 conda-forge sphinxcontrib-applehelp 1.0.2 py_0 conda-forge sphinxcontrib-devhelp 1.0.2 py_0 conda-forge sphinxcontrib-htmlhelp 1.0.3 py_0 conda-forge sphinxcontrib-jsmath 1.0.1 py_0 conda-forge sphinxcontrib-qthelp 1.0.3 py_0 conda-forge sphinxcontrib-serializinghtml 1.1.4 py_0 conda-forge splot 1.1.3 pyhd8ed1ab_1 conda-forge spreg 1.2.2 pyhd8ed1ab_0 conda-forge sqlite 3.34.0 h74cdb3f_0 conda-forge sqlparse 0.4.1 pyh9f0ad1d_0 conda-forge statsmodels 0.12.2 py38h5c078b8_0 conda-forge stevedore 3.3.0 py38h578d9bd_1 conda-forge storefact 0.10.0 py_0 conda-forge tabulate 0.8.9 pyhd8ed1ab_0 conda-forge tbb 2020.2 h4bd325d_4 conda-forge tblib 1.7.0 pyhd8ed1ab_0 conda-forge tenacity 7.0.0 pyhd8ed1ab_0 conda-forge terminado 0.9.3 py38h578d9bd_0 conda-forge testpath 0.4.4 py_0 conda-forge text-unidecode 1.3 py_0 conda-forge threadpoolctl 2.1.0 pyh5ca1d4c_0 conda-forge thrift 0.11.0 py38he1b5a44_1001 conda-forge tiledb 2.2.6 h91fcb0e_0 conda-forge tk 8.6.10 h21135ba_1 conda-forge tmux 3.1 h1c4e50f_0 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge toolz 0.11.1 py_0 conda-forge tornado 6.1 py38h497a2fe_1 conda-forge tqdm 4.59.0 pyhd8ed1ab_0 conda-forge traitlets 5.0.5 py_0 conda-forge typed-ast 1.4.2 py38h497a2fe_0 conda-forge typing-extensions 3.7.4.3 0 conda-forge typing_extensions 3.7.4.3 py_0 conda-forge typing_inspect 0.6.0 pyh9f0ad1d_0 conda-forge tzcode 2021a h7f98852_1 conda-forge tzdata 2021a he74cb21_0 conda-forge ujson 4.0.2 pypi_0 pypi unidecode 1.2.0 pyhd8ed1ab_0 conda-forge universal_pathlib 0.0.7 pyhe74cb21_0 conda-forge unzip 6.0 h7f98852_2 conda-forge uritools 3.0.1 pyhd8ed1ab_0 conda-forge urllib3 1.26.4 pyhd8ed1ab_0 conda-forge urlquote 1.1.4 py38he1d38c1_3 conda-forge vcrpy 4.1.1 py_0 conda-forge vim 8.2.2637 py38h526f742_0 conda-forge virtualenv 20.4.3 py38h578d9bd_0 conda-forge vulture 2.3 pypi_0 pypi watermark 2.2.0 pyhd8ed1ab_0 conda-forge wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge webencodings 0.5.1 py_1 conda-forge websocket-client 0.57.0 py38h578d9bd_4 conda-forge wheel 0.36.2 pyhd3deb0d_0 conda-forge widgetsnbextension 3.5.1 py38h578d9bd_4 conda-forge wrapt 1.11.2 py38h1e0a361_1 conda-forge xarray 0.17.0 pyhd8ed1ab_0 conda-forge xerces-c 3.2.3 h9d8b166_2 conda-forge xlrd 2.0.1 pyhd8ed1ab_3 conda-forge xlsxwriter 1.3.7 pyh9f0ad1d_0 conda-forge xlwt 1.3.0 py_1 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.0.10 h7f98852_0 conda-forge xorg-libsm 1.2.3 hd9c2040_1000 conda-forge xorg-libx11 1.7.0 h7f98852_0 conda-forge xorg-libxau 1.0.9 h7f98852_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-libxext 1.3.4 h7f98852_1 conda-forge xorg-libxrender 0.9.10 h7f98852_1003 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-xextproto 7.3.0 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xxhash 0.8.0 h7f98852_3 conda-forge xz 5.2.5 h516909a_1 conda-forge yaml 0.2.5 h516909a_0 conda-forge yapf 0.30.0 pyh9f0ad1d_0 conda-forge yarl 1.6.3 py38h497a2fe_1 conda-forge zeromq 4.3.4 h9c3ff4c_0 conda-forge zict 2.0.0 py_0 conda-forge zip 3.0 h14c3975_1 conda-forge zipp 3.4.1 pyhd8ed1ab_0 conda-forge zlib 1.2.11 h516909a_1010 conda-forge zstandard 0.15.2 py38h497a2fe_0 conda-forge zstd 1.4.9 ha95c52a_0 conda-forge ```Description of expected behavior and the observed behavior
Attempted to plot example using the bokeh backend with
stacked=False
producedKeyError: "Dimension('country', label='Country') not found."
. Plotting the same example using only the matplotlib backend works.Also plotting the same example using the pandas dataframe rather than the holoviews dataset works.
Complete, minimal, self-contained example code that reproduces the issue
Example from docs:
Stack traceback and/or browser JavaScript console output
Expand for error
```python --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/IPython/core/formatters.py in __call__(self, obj, include, exclude) 968 969 if method is not None: --> 970 return method(include=include, exclude=exclude) 971 return None 972 else: /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/core/dimension.py in _repr_mimebundle_(self, include, exclude) 1315 combined and returned. 1316 """ -> 1317 return Store.render(self) 1318 1319 /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/core/options.py in render(cls, obj) 1403 data, metadata = {}, {} 1404 for hook in hooks: -> 1405 ret = hook(obj) 1406 if ret is None: 1407 continue /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/ipython/display_hooks.py in pprint_display(obj) 280 if not ip.display_formatter.formatters['text/plain'].pprint: 281 return None --> 282 return display(obj, raw_output=True) 283 284 /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/ipython/display_hooks.py in display(obj, raw_output, **kwargs) 250 elif isinstance(obj, (CompositeOverlay, ViewableElement)): 251 with option_state(obj): --> 252 output = element_display(obj) 253 elif isinstance(obj, (Layout, NdLayout, AdjointLayout)): 254 with option_state(obj): /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/ipython/display_hooks.py in wrapped(element) 144 try: 145 max_frames = OutputSettings.options['max_frames'] --> 146 mimebundle = fn(element, max_frames=max_frames) 147 if mimebundle is None: 148 return {}, {} /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/ipython/display_hooks.py in element_display(element, max_frames) 190 return None 191 --> 192 return render(element) 193 194 /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/ipython/display_hooks.py in render(obj, **kwargs) 66 renderer = renderer.instance(fig='png') 67 ---> 68 return renderer.components(obj, **kwargs) 69 70 /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/renderer.py in components(self, obj, fmt, comm, **kwargs) 408 doc = Document() 409 with config.set(embed=embed): --> 410 model = plot.layout._render_model(doc, comm) 411 if embed: 412 return render_model(model, comm) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/panel/viewable.py in _render_model(self, doc, comm) 422 if comm is None: 423 comm = state._comm_manager.get_server_comm() --> 424 model = self.get_root(doc, comm) 425 426 if config.embed: /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/panel/viewable.py in get_root(self, doc, comm, preprocess) 480 """ 481 doc = init_doc(doc) --> 482 root = self._get_model(doc, comm=comm) 483 if preprocess: 484 self._preprocess(root) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/panel/layout/base.py in _get_model(self, doc, root, parent, comm) 110 if root is None: 111 root = model --> 112 objects = self._get_objects(model, [], doc, root, comm) 113 props = dict(self._init_properties(), objects=objects) 114 model.update(**self._process_param_change(props)) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/panel/layout/base.py in _get_objects(self, model, old_objects, doc, root, comm) 100 else: 101 try: --> 102 child = pane._get_model(doc, root, model, comm) 103 except RerenderError: 104 return self._get_objects(model, current_objects[:i], doc, root, comm) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/panel/pane/holoviews.py in _get_model(self, doc, root, parent, comm) 239 plot = self.object 240 else: --> 241 plot = self._render(doc, comm, root) 242 243 plot.pane = self /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/panel/pane/holoviews.py in _render(self, doc, comm, root) 304 kwargs['comm'] = comm 305 --> 306 return renderer.get_plot(self.object, **kwargs) 307 308 def _cleanup(self, root): /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/bokeh/renderer.py in get_plot(self_or_cls, obj, doc, renderer, **kwargs) 71 combining the bokeh model with another plot. 72 """ ---> 73 plot = super(BokehRenderer, self_or_cls).get_plot(obj, doc, renderer, **kwargs) 74 if plot.document is None: 75 plot.document = Document() if self_or_cls.notebook_context else curdoc() /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/renderer.py in get_plot(self_or_cls, obj, doc, renderer, comm, **kwargs) 241 init_key = tuple(v if d is None else d for v, d in 242 zip(plot.keys[0], defaults)) --> 243 plot.update(init_key) 244 else: 245 plot = obj /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/plot.py in update(self, key) 980 def update(self, key): 981 if len(self) == 1 and ((key == 0) or (key == self.keys[0])) and not self.drawn: --> 982 return self.initialize_plot() 983 item = self.__getitem__(key) 984 self.traverse(lambda x: setattr(x, '_updated', True)) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/bokeh/element.py in initialize_plot(self, ranges, plot, plots, source) 1403 self.handles['plot'] = plot 1404 -> 1405 self._init_glyphs(plot, element, ranges, source) 1406 if not self.overlaid: 1407 self._update_plot(key, plot, style_element) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/bokeh/element.py in _init_glyphs(self, plot, element, ranges, source) 1347 else: 1348 style = self.style[self.cyclic_index] -> 1349 data, mapping, style = self.get_data(element, ranges, style) 1350 current_id = element._plot_id 1351 /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/plotting/bokeh/chart.py in get_data(self, element, ranges, style) 1009 if group_dim not in ds.dimensions(): 1010 ds = ds.add_dimension(group_dim.name, ds.ndims, gval) -> 1011 data[group_dim.name].append(ds.dimension_values(group_dim)) 1012 else: 1013 data[xdim.name].append(ds.dimension_values(xdim)) /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/core/data/__init__.py in pipelined_fn(*args, **kwargs) 203 204 try: --> 205 result = method_fn(*args, **kwargs) 206 if PipelineMeta.disable: 207 return result /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/core/data/__init__.py in dimension_values(self, dimension, expanded, flat) 1102 NumPy array of values along the requested dimension 1103 """ -> 1104 dim = self.get_dimension(dimension, strict=True) 1105 values = self.interface.values(self, dim, expanded, flat) 1106 if dim.nodata is not None: /home/conda/store/9c828ea9bf6dc65c4cd4f7331f255b67f76ac3534f6383157d0ce0ddc5bdb8e2-datum38/lib/python3.8/site-packages/holoviews/core/dimension.py in get_dimension(self, dimension, default, strict) 975 dims = [d for d in all_dims if dimension == d] 976 if strict and not dims: --> 977 raise KeyError("%r not found." % dimension) 978 elif dims: 979 return dims[0] KeyError: "Dimension('country', label='Country') not found." ```