Showing a graph of data after submission