A bar chart is a graphical representation of a frequency table. Each bar corresponds to a category and the bar's height shows the value. For example, the population in four cities in the United States.
Bar charts are mainly used when the categories are not numbers, like cities, brands, colors, political parties, etc. If the categories are numbers, like ages or lengths, a histogram should be used since the categories can be sorted.