Made chart instantaneous on click