Improve graph UI.

- resize graphs on browser resize
- move status field to upper right corner to save some space
- align the legend width to the graph's width