Skip to content

nyc_buildings notebook shows legend in double and interaction does not work #1312

@PierreCe

Description

@PierreCe

ALL software version info

Online nyc_buildings notebook ((https://nyc-buildings-notebook.pyviz.demo.anaconda.com/notebooks/nyc_buildings.ipynb#))
Tested with Chrome

Description of expected behavior and the observed behavior

The legend should be shown only once, and deselecting a type of building should hide it what doesn't happen.

Complete, minimal, self-contained example code that reproduces the issue

All code is online

polys = hv.Polygons(ddf, vdims='type')
shaded = datashade(polys, color_key=color_key, aggregator=ds.by('type', ds.any()))
hover = inspect_polygons(shaded).opts(fill_color='red', tools=['hover'])
tiles * shaded * legend * hover

Screenshots or screencasts of the bug in action

In https://github.com/holoviz/datashader/blob/main/examples/user_guide/8_Polygons.ipynb there is a screenshot of the attended legend.

Actual behavior :
image

As I manage to reproduce the same behavior locally, what would be the correction to make?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions