powered by
Add "tap" tool to a Bokeh figure
tool_tap(fig, callback, ref_layer)
figure to modify
a callback to be applied to this tool - either a character string of javascript code or any one of debug_callback, shiny_callback, console_callback, custom_callback
debug_callback
shiny_callback
console_callback
custom_callback
name of the layer that the callback should be applied to
Other tools: tool_box_select(), tool_box_zoom(), tool_crosshair(), tool_hover(), tool_lasso_select(), tool_pan(), tool_reset(), tool_resize(), tool_save(), tool_wheel_zoom()
tool_box_select()
tool_box_zoom()
tool_crosshair()
tool_hover()
tool_lasso_select()
tool_pan()
tool_reset()
tool_resize()
tool_save()
tool_wheel_zoom()
# NOT RUN { figure() %>% ly_points(1:10, lname = "points") %>% tool_tap(debug_callback("points"), "points") # }
Run the code above in your browser using DataLab