Dynamic Variables

Dynamic Variables

Hey All, I'm relatively new to Tago.io and hoping to find a solution to the below issues using more advanced functions of the API.. thanks in advance for any help! 

1. Is there any way to dynamically change the variable a widget is using? When I copy the Structure ID of a widget, it appears that 'data' is the variable that needs to be changed or updated. I can't find much info in the forums on how to change this on the fly. 

2. How about making a widget appear or be hidden? 

3. Or any type of dynamic filtering through the API on a widgets data to display a subset of data?

Thanks