
Hi,
I want to display annotations when an event callback runs
I tried:
cds1= ColumnDataSource(data=dict(x_start=, y_start=[*], x_end=, y_end= ))
p.add_layout(Arrow(end=VeeHead(size=8), line_color=“grey”, source=cds1, x_start=‘x_start’, y_start=‘y_start’, x_end=‘x_end’, y_end=‘y_end’))
in callback:
cds1.data=dict(x_start=x_start_arr, y_start=y_start_arr, x_end=x_end_arr, y_end=y_end_arr )
I expected all arrows to be seen, when I injected data into cds1.data. But none of them are seen.
What am I doing wrong?
regards
