plot data into graph