Finished function to graph visualization by days