PatrikHlobil / Pandas-Bokeh

Bokeh Plotting Backend for Pandas and GeoPandas
MIT License
878 stars 112 forks source link

different types of chart kind on the same html plot #130

Open algomaschine opened 1 year ago

algomaschine commented 1 year ago

Gents, I'm sorry, still having issues figuring out how to plot 2 lines of different style in HTML.

Let's say here's an example. df would have different columns. I want to display one of it as normal line (like below), but some others as discrete arrows (to show my signals) or circles or whatever, to mark the main line with some entries/exists. Also how can I make solid vertical line for xticks? They're kind of very pale. Thanks!

with open("osc_multimodel_forecast_plot.html" , "w") as f: ->html = df.plot_bokeh(kind='line', title="BB S&P", xticks=xticks, vertical_xlabel=True,figsize=(2000, 1000), show_figure=True,return_html=True, xlabel='date', ylabel='Price', hovertool=True, zooming=True,panning=True, legend='top_right') ->f.write(html+"\n") f.close()