Let me create one at a time.
The first one.

You can drag the object to move it from equilibrium position.
Use slider to change spring constant, mass or friction coefficient mu.

Check bar to show bar chart. Pie chart will be added later.
Let me know what need to be changed.

Click the following image to view simulation.
[eye]

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/springfriction_pkg/springfriction.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(955.3kB):double click downloaded file to run it. , Download EJS source View EJS source
[/eye]