graphData() fixed