trying to generate graph data