send graph data to template