Construct the histogram by given data: