Clears out the div every time before creating a new graph.