Improve loading data for drawing second graph