resize graph on data time range change