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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -