Reputation:
Here is my code below, how can I make the legend take the name of the column in rf.index[0]. Simply passing rf.index[0] to legend creates a legend of the categories rather than the actual name of the column.
p1.line(
x = 'x',
y = rf.index[0],
source=source,
legend = ???,
color = 'black'
)
Upvotes: 1
Views: 282
Reputation:
Here is the answer!
legend = dict(value=rf.index[0])
source
https://github.com/bokeh/bokeh/issues/5365
Upvotes: 1