Hello everyone,
I’m having some issues regarding the plotting of circles with changing sizes. Basically, I want to do the same as the gapminder app that displays circles that have sizes given in the datasource (bokeh/examples/app/gapminder at branch-3.0 · bokeh/bokeh · GitHub).
What I want to do is basically the following:
self.figure.circle(x=‘risk’, y=‘returns’, size=‘circle_size’, source=data_source)
self.figure is the object that stores the current bokeh plot object. But I keep getting the same error:
Failed to push document: ValueError(“expected an element of either String, Dict(Enum(‘field’, ‘value’, ‘transform’), Either(String, Instance(Transform), Float)) or Float, got {‘field’: ‘circle_size’, ‘units’: ‘screen’}”,)
This is persistent when I try to use the following code:
self.figure.circle(x=[1, 2, 3], y=[1, 1, 1], size=[1, 2, 3])
For me it seems I’m doing the same as the gapminder app, but the code still does not work. Can anybody point me in a specific direction? I would appreciate any kind of help.
Best
Alexander