graphs: make read_data() take the times array as a paramater

this will let us re-use the code to load both regular times as well
as rdpmc times