Read data in and histogram