Bokeh: how to select individual plot objects and link to different urls -
hi i'm plotting bokeh rect tool plot list of rectangles:
p.rect(xs, ys, widths, heights, fill_color="#f2583e", line_color="black",tags=rect_tags)
i want have following function: different rectangles above, each link different url. try following function:
url = "http://www.colors.commutercreative.com/@color/" taptool = p.select(type=taptool) taptool.callback = openurl(url=url)
but links rectangles , cannot specify individual ones.
if change to
taptool = p.select(type=taptool, tags="sometag")
to specify specific tags, link not work.
could me how achieve function?thanks!
Comments
Post a Comment