Fix reducer function.

Using the max value allows a more reasonable graph to be generated.
Unfortunately it also means you need to have wildly differnt
measurements to get a graph at all.
Update some HTML.
Re-position popover dynamically.
Fix failing test.