Hi,
I created a Bokeh Plot using following commands (new to bokeh). Unfortunately, two things do not work:
1- I want to get my x, and y values when I hover over my circles:
2- legend.background colors remain “#cccccc”, although, I specify to be “white”.
I appreciate if you could help me on these issues.
Thanks
TOOLS = “resize, pan, wheel_zoom, box_zoom, reset”
p1 = figure(tools = TOOLS, x_axis_label = ‘time (mins)’, y_axis_label = ‘Imbalance’\
, plot_width = 1500, plot_height = 700, background_fill= “#cccccc”)
p1.segment(tempindex, 0, tempindex, df.loc[tempindex, ‘leak_mflow(1)’], line_width=2, line_color=colors[-1])
p1.circle(x = tempindex, y = df.loc[tempindex, ‘leak_mflow(1)’], size=10,\
fill_color=colors[-1], line_color=colors[-1], line_width=3, legend = idx[j][‘name’])
p1.select(dict(type = HoverTool)).tooltips = [{“x”:"$x",“y”:"$y"}]
p1.grid.grid_line_color=“white”
p1.legend.orientation = “bottom_right”
p1.legend.background_fill_color = “white”
p1.legend.background_fill_alpha = 0.2