How to create a histogram from a frequency table