Tweaks to graphs, refresh disabled when page not visible

Page visibility API used to paused refresh when the page isnt visible.