Bar Graphs and Histograms
Last Updated :
12 Dec, 2024
A Bar graph or a Histogram is a tool used for visual representation of data. Representing the data in a bar graphs or histograms, makes it easy to understand the concepts and relationships among data.
A Histogram is used to display the distribution of continuous data by grouping values into intervals, or bins. Whereas, a Bar graph is used to compare discrete categories, with rectangular bars representing the frequency or value of each category.

Bar Graph
The pictorial representation of data in groups, either in horizontal or vertical bars where the length of the bar represents the value of the data present on the axis. They (bar graphs) are usually used to display or impart the information belonging to 'categorical data' i.e., data that fit in some category.
Reading a Bar Graph and comparing two sets of data
To read a Bar graph, we need to ask questions to ourselves looking at the displayed graph. Let's understand reading a Bar graph through a fundamental example,
Different types of fruits are liked by People,

What does the X-axis and Y-axis on the graph are representing?
The X-axis represents the different types of fruits like apple, guava. while Y-axis represents the Number of people.
What is the Common base for the Bars?
The bars are showing a common base of category of fruits.
What is the scale used on the Y-axis?
The scale used is normal, i.e; 1 Unit = 1 person
Overall, what kind of information the bar graph displaying?
The bar graph is displaying the number of People liking different types of fruits.
Looking at the bar Graph, can one answer, how many people like Mango?
Yes, By observing the length of the bar, one can tell that there are 5 people who like Mango.
Comparing two sets of data
To compare two sets of data we simply need to compare the heights of the bars that represent that specific data. Also to get the exact value represented by each bar we can look at the value on the y axis corresponding to that height.
The bar with more height represents more value and the bar with less height represents less value.
It can be concluded the following just by looking at the graph:
- 4 People like Apples.
- 7 People like guava.
- 6 People like banana.
- 5 People like Mango.
Properties of Bar Graph
- All Bars have a common base.
- The length of each bar corresponds to its respective data mentioned on the axis (Y-axis for Vertical Graph, X-axis for Horizontal Graph).
- Each bar displayed has the same width.
- The distance between consecutive bars is the same
Histogram
Histograms are the tools used for graphical representation of data with the help of bars, the heights of the bars may vary due to different data. The histogram is similar to a bar graph, but histogram groups numbers into different ranges. The length of each bar tells how many fall into each range, and it can be decided which ranges are to be used.
It organizes the numbers into groups, or "bins," and shows how many numbers fall into each group with bars. This makes it easy to see patterns, like which numbers appear most often or how the data is spread out.
Construction and interpretation of Histogram
- First, mark the class intervals on X-axis and frequencies on Y-axis.
- Make sure that the scale of both axes is the same.
- The class Intervals shall always be exclusive.
- Create bars with class intervals on the x-axis and corresponding frequencies on the y-axis.
- The length of each bar reflects the Frequency when intervals are equal.
- The area of each bar is the same as its respective frequency when intervals are unequal.
Difference Between Bar Graphs and Histograms
Feature | Bar Graph | Histogram |
---|
Dimensionality | One dimension | Two dimensions |
---|
Representation of frequency | Length of the bars | Area of the bar |
---|
Significance of Bar Width | No special significance | Represents interval or bin |
---|
Spacing between bars | Bars are separated with equal spaces | Bars are touching each other |
---|
Solved Examples on Bar Graphs and Histograms
Bar Graph Questions:
Question 1: Draw the Bar Graph for the following table,

Solution:
The Bar Graph for the following table is,

Question 2: The average speed of some vehicles is shown below, Represent it through a bar graph.

Solution:
The average speed mentioned in the table is the frequency that decides the length of each bar graph, therefore, if the graph is vertical, the Average speed will be shown on the y-axis and the types of vehicles will be shown on the x-axis.

Histogram Questions:
Question 1:In a Park, there are 28 trees of different heights, the heights can be measured in centimeters and the range of the trees lie between 100-350 cm. Draw the Histogram for the following data,

Solution:
Since the height of the trees are lying between 100-350, we shall start by marking the heights on x-axis in groups of 50cm each and the number of trees will be mentioned on y-axis.
Therefore, if a tree has a height of 230 cm, it will lie in the rectangle 200-250.

Question 2:In the below-given table, the number of machines working in a factory for their fixed amount of time is shown. Draw the Histogram for the following data.

Solution:
The Histogram for the table mentioned above will have class intervals of 5 minutes on x-axis and the number of machines used should be on y-axis
Similar Reads
IBPS Clerk Syllabus of Quantitative Aptitude
IBPS Clerk Exam 2023 Quantitative Aptitude: Quantitative Aptitude is one of the most significant areas of the IBPS Clerk Exam, with 35 questions for 35 marks. The majority of applicants fear Quantitative Aptitude since it requires a lot of calculation and complicated problems that demand high analyt
6 min read
Ratio & Proportion, Percentage
Time and Work - Aptitude Questions and Answers
Time and Work is one of the most basic concepts in Quantitative Aptitude, which is tested extensively in government exams. Undoubtedly, having a strong background in this topic can give candidates an upper hand and help them to score well in competitive exams. A candidate needs to be aware of the ba
13 min read
Surface Areas and Volumes
Surface Area and Volume are two fundamental properties of a three-dimensional (3D) shape that help us understand and measure the space they occupy and their outer surfaces.Knowing how to determine surface area and volumes can be incredibly practical and handy in cases where you want to calculate the
10 min read
Bar Graphs, Linear Graphs and Pie Charts
Trigonometry, Height and Distances
Height and Distance | Applications of Trigonometry
Height is the measurement of an item in the vertical direction, whereas distance is the measurement of an object in the horizontal direction. Heights and Distances are the real-life applications of trigonometry which is useful to astronomers, navigators, architects, surveyors, etc. in solving proble
6 min read
Trigonometric Ratios
There are three sides of a triangle Hypotenuse, Adjacent, and Opposite. The ratios between these sides based on the angle between them is called Trigonometric Ratio. The six trigonometric ratios are: sine (sin), cosine (cos), tangent (tan), cotangent (cot), cosecant (cosec), and secant (sec).As give
4 min read
Trigonometry in Math
We use trigonometry in many everyday situations, often without even noticing. Construction and Architecture: Trigonometry helps calculate angles and heights when designing buildings, bridges, and roads. For example, architects use it to determine roof slopes or the angle of staircases.Navigation: Pi
3 min read