Get graph data on search page