I am building a stacked vbar graph as shown below. I couldn’t get vbar_stack to work, so I built it manually as described here: https://bokeh.pydata.org/en/latest/docs/reference/plotting.html#bokeh.plotting.figure.Figure.vbar_stack
So I am looping through creating a vbar for each part of the stacked bar, adding the column names to the bottom and top lists as the loop progresses
#initialize looping variables
#bars is a dict that contains a column name from the data source (key) and a color (value).
#Not all of the columns in the data source are called from bars
for column_name in bars.keys():
#loops through bars dict
#append first column to identify top of part of stack
#plot vbar, using looped bottom and top locations
color = bars[column_name][‘color’],
line_color = None)
#updates bottom location
I’m running a periodic update script that works on other single vbars in different figures from the same script (but calling a normal vbar setup, where top=columnn_name, and I’ve confirmed that the data source is getting updated for the columns in the data source for the stacked bar figure. However the displayed figure is not updating to reflect the new values, even when only one bar is rendered this way. Refreshing the page updates the graph.
I’m stumped, so I’m wondering if there’s anything weird about using periodic callbacks on stacked bars that I can’t find. Thanks for any help or advice.