@@ -72,7 +72,7 @@ my_hover=HoverTool()
|
||||
my_hover.tooltips=[('Type','@route_type_long'),('Route id','@route_short_name'),('Route','@route_long_name')]
|
||||
|
||||
p.add_tools(my_hover)
|
||||
p.circle('x', 'y', source=Source, legend_field='route_type_long', color='color')
|
||||
p.circle('x', 'y', source=Source, legend_field='route_type_long', color='color', size=10)
|
||||
curdoc().add_root(p)
|
||||
curdoc().add_periodic_callback(update,5000)
|
||||
p.legend.location = "top_left"
|
||||
|
||||
Reference in New Issue
Block a user