Cache valuepopup query
Get graphs from controller rather than the DOM