I’m plotting OHLCV values with bokeh and having hard time figuring out how to set x axis to corresponding “open_time” from panda df.
This is how i plot
p = figure(plot_width=900, plot_height=400)#, x_axis_type='datetime')
p.segment('bar', 'high', 'bar', 'low', source=src, line_width=1, color='black') # plot the wicks
p.vbar('bar', 0.7, 'close', 'open', source=src, line_color='white', fill_color='colors', ) # plot the body
hover = HoverTool(tooltips=[
('date', '@open_time{%F %T}'),
('open', '@open{0.0000f}'),
('high', '@high{0.0000f}'),
('low', '@low{0.0000f}'),
('close', '@close{0.0000f}')
],
formatters={'@open_time': 'datetime'})
p.add_tools(hover)

