Grafica library

You can choose between linear and logarithmic scales. Click the plot area to switch between the two.

For more details, check the source code or play with it at JSFiddle.