Interaction with Scatter- or Bar-Charts

to which extend is it possible to use scatter or bar charts as input from the user.
For example I would like a user to drag the bars in a barchart to modify certain parameters, like e.g.


Another example for dragable scatter plots is

Thank you!