Return correct data for graphs plotting