I am attempting to use a dropdown to control legend location with errors on the js_link portion of the following code.
menu = [('Top Right', 'top_right'),('Top Left', 'top_left'), ('Top Center','top_center'),('Bottom
Right','bottom_right'),('Bottom Center','bottom_center'),('Bottom Left','bottom_left'),('Center
Left','center_left'),('Center Right','center_right'),('Center','center')]
Drop1 = Dropdown(label = 'Legend Position', menu = menu)
Drop1.js_link('value', tps.legend.location,"type")
I have tried variation to the js_link code such as:
Drop1.js_link('type', tps.legend.location,"value")
Drop1.js_link('value', tps.legend, 'location')
Drop1.js_link(tps.legend, 'location', attr_selector=0)
Drop1.js_link(tps.legend, 'location')
Drop1.js_link(tps.legend, 'value')
Thanks for any advice!