I'm updating all my systems from Bokeh 0.9 to Bokeh 0.11, and have one chart that I can't seem to get to work anymore.
I start with a DataFrame like this:
Out[75]:
First Second Third Fourth Fifth
Red 27 22 33 20 9
Blue 10 27 18 31 14
Magenta 32 10 11 8 10
Yellow 8 6 14 13 15
Green 9 5 6 6 2
And I would produce a nice chart with colors names along the axis, 5 stacked bars in the same order as the legend, which would give the ranks. For example, this is the output for a stacked bar with 10 ranks and 10 categories that we generated in 0.9.0:
Stacked Bar with 10 categories and 10 ranks
I used to do this by just:
plot = Bar(dataframe, list_of_color_names, title="stack of 5 categorical ranked in order from first to last", stacked=True, legend="top_right", ylabel="count", width=600, height=600)
Where "list_of_colors_names" was just a list generated from the index of the DataFrame, but this doesn't work anymore. I realize that 0.11 drops "stacked=True" and and now we use "stack", but I still can't seem to get it to work.
The examples on the Bokeh website are for simpler bar charts and when I apply that model to my DataFrame I get a variety of errors, such as "'NoneType' object is not iterable", but I'm clearly just missing the larger picture about how this type of stacked bar works in 0.11. There are a few other Bokeh stacked bar discussions here but they are either for an earlier version of Bokeh (my code worked in 0.9), or seemed to be a different case. What's the most best way to do this kind of stacked bar now?