I read the documentation and didn’t understand a thing.
It just takes a dataframe and does magic. It didn’t work for me and I’m getting the errors at the top of my post
from bokeh.plotting import figure, show, ColumnDataSource
# need to provide factors for a categorical range (i.e. "string" coords)
p = figure(x_range=["1"])
all_data = {
# all columns must have SAME length -- just like DataFrame
'day' : ["1", "1", "1"],
'price' : [10, 12, 13],
'str' : ["A", "B", "C"],
}
source = ColumnDataSource(data=all_data)
# specify column names from the data source -- explicit, not magic
p.text(x="day", y="price", text="str", source=source)
show(p)