chart update in response to submit as well as real time