Reputation: 671
I have the plot below that I'm currently working on. It describes the movement of a certain product inside a warehouse.
With this plot I also have a dictionary with lots of information about the product (unit cost, lead time, stock level and so on). I wonder if there is a way to also plot this information like a grid below the chart. The desired output would be something like:
I've searched for something like this, but the only thing more or less related that I've found was the possibility for bokeh
to plot a table as a widget. But the output is something totally different:
If someone has an answer using or not the bokeh
library, I appreciate the help :)
My actual code is:
p = figure(plot_width=640, plot_height=360, x_axis_type="datetime")
source = ColumnDataSource(df)
p.vbar(x='DT', top='STOCK', width=pd.Timedelta(days=1), source=source, fill_alpha=0.4, color='paleturquoise')
p.vbar(x='DT', top='SOMA_ENTRA', width=pd.Timedelta(days=1), source=source, fill_alpha=0.8, color='seagreen')
p.vbar(x='DT', top='SOMA_SAI', width=pd.Timedelta(days=1), source=source, fill_alpha=0.8, color='crimson')
hline = Span(location=0, line_alpha=0.4, dimension='width', line_color='gray', line_width=3)
p.renderers.extend([hline])
show(p)
Upvotes: 0
Views: 741
Reputation: 339
Two possible solutions that I am using for similiar tasks:
Upvotes: 3