You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to get the clicked coordinate on a HeatMap. Unfortunately, neither does on_click, on_element_click or on_background_click seem to work (see example below).
Do I miss something? Or is there another way to get the mouse position when a user clicks on a point in my heatmap?
I tried the solution from #973 but without success, no events were triggered.
The text was updated successfully, but these errors were encountered:
# 4. Marks -- lets now re-do our heat map & add in some interactivity:heat_map=bqplot.GridHeatMap(color=data,
scales= {'color': col_sc,
'row': y_sc,
'column': x_sc},
interactions= {'click': 'select'}, # make interactive on click of each boxanchor_style= {'fill':'blue'}, # to make our selection blueselected_style= {'opacity': 1.0}, # make 100% opaque if box is selectedunselected_style= {'opacity': 0.8}) # make a little see-through if notheat_map.observe(on_selected, 'selected')
defon_selected(change):
print(change['owner'].selected)
Hi,
I try to get the clicked coordinate on a HeatMap. Unfortunately, neither does
on_click
,on_element_click
oron_background_click
seem to work (see example below).Do I miss something? Or is there another way to get the mouse position when a user clicks on a point in my heatmap?
I tried the solution from #973 but without success, no events were triggered.
The text was updated successfully, but these errors were encountered: