read data and create graphs