When I try to update bar plots (using rect) in an app with Bokeh, I get error the following error, why?
bar_data = Instance(ColumnDataSource)
figure = figure(title_text_font_size=“12pt”,
plot_height=300,
plot_width=300,
tools=toolset,
title='I/O throughput',
logo=None)
figure.rect(‘x’, ‘y’, source=obj.bar_data, width=0.5, height=value, color = “#ff1200”)
and then, in an update_data(self) callback:
def update_data(self):
…
self.bar_data.data = dict(x=‘foo’, y=6)
…
I get:
plots[‘bar’].rect(‘x’, ‘y’, source=obj.bar_data, width=0.5, height=value, color = “#ff1200”)
NameError: name ‘value’ is not defined
ERROR:tornado.access:500 GET /bokeh/flight_match_rate/ (127.0.0.1) 122.41ms
Josh
