Hey,
I recommend checking out our Cascading Form example which demonstrates a similar scenario of populating a form element with options based on a previous selection:
As for changing the Graph based on the user’s selection, you should post a message to the HTML component on the dropdown change event as demonstrated here: https://www.wix.com/code/home/example/Chart
Have a good day,
Tal.