Updated client to output histogram in date order