holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.66k stars 396 forks source link

Popup is clipped / hidden behind plot #6295

Closed ahuang11 closed 14 hours ago

ahuang11 commented 1 week ago

Not sure if it's possible to adjust the zorder of the Bokeh popup panel?

import numpy as np
import panel as pn
import holoviews as hv

points = hv.Points(np.random.randn(1000, 2))

def form(name):
    text_input = pn.widgets.TextInput(name='Description')
    button = pn.widgets.Button(name='Save', on_click=lambda _: layout.param.update(visible=False))
    layout = pn.Column(f'# {name}', text_input, button)
    return layout

hv.streams.BoundsXY(source=points, popup=form('Bounds'))
hv.streams.Lasso(source=points, popup=form('Lasso'))
hv.streams.Tap(source=points, popup=form('Tap'))

points.opts(tools=['box_select', 'lasso_select', 'tap'], width=600, height=600, size=6, color='black', fill_color=None) + points.clone()
image
hoxbro commented 1 week ago

Can you play around with z-index?

philippjfr commented 1 week ago

That should probably be fixed at the Bokeh level but I'm not opposed to some stylesheet overrides on our end for now.