Bar graphs compare categories of data by representing each category with a bar whose length corresponds to the data value. They are useful for comparing multiple data sets where each set is represented by a differently patterned or colored bar, allowing viewers to easily see differences between the categories across data sets. Bar graphs display data with bars of varying lengths.