Histograms can never be used to represent discrete variables/data.
Bar graphs are usually used to represent 'categorical data' while the histograms are usually used for 'continuous data'.