I think the matplotlib api may be too ingrained in me as I can’t figure out how to use bokeh to create a simple bar graph.
I’m probably just having a brain-freeze but I’ve referred to the examples and tried multiple things with no luck so would greatly appreciate it if someone please show me how to use the bokeh api to replicate the below plot?
On the plus side it will probably be a useful example for others used to the pandas/matplotlib api.
index = pd.Index([1,2,3,4,5], label=‘period’)
columns = pd.Index([‘A’, ‘B’, ‘C’], label=‘categories’)
values = randint(10, 100, 15).reshape(5, 3)
df = pd.DataFrame(values, index, columns)
i.e. the index of the DataFrame contains the x-axis labels, the columns are the categories to stack and the values are the values for each label/category