r = [standardfig.line(x='date', y=i, source=ColumnDataSource(value),
color=next(colors), legend_label=key, line_width=3,
name=i,hover_line_color="red",hover_line_width=4)
for key,value in dict_filter_data[i].items()]
Now with your solution I can do
legend = Legend(items=
[(list(standardfig.legend.items[p.index(i)].label.values())[0],[i])
for i in r],location="center")
and use
standardfig.add_layout(legend,'right')
Note that I have a small probleme I have now 2 legends one inside the plot and another one outside …