receive data, and plot the graph