graph is now working with cached data and min y and max y scaling