add code to select chart range