Putting chart on submit