Responsive graphs

Fixes #1717 and #1719, and closes #1703

<img width="50%" src="https://f.cloud.github.com/assets/688886/1699563/9cef3190-5fa9-11e3-80f3-5ad826af24b7.png"> <img width="50%" src="https://f.cloud.github.com/assets/688886/1699562/9cea3104-5fa9-11e3-964f-dde1d65c1ea2.png">

-------------------

<img width="50%" src="https://f.cloud.github.com/assets/688886/1699565/9d6afe56-5fa9-11e3-9051-fd5c146e9e7e.png"> <img width="50%" src="https://f.cloud.github.com/assets/688886/1699564/9d692b80-5fa9-11e3-8e82-b6568adabcfe.png">