added exitOnClose option to Chart.draw
minor