added chart reloading when a point is selected