Charts clear when visualize button is clicked