Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PierreCe opened this issue Jan 29, 2024 · 0 comments
Open

Comments

@PierreCe
Copy link

PierreCe commented Jan 29, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant