recreates teh chart when data is selected