Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Number System and Arithmetic
  • Algebra
  • Set Theory
  • Probability
  • Statistics
  • Geometry
  • Calculus
  • Logarithms
  • Mensuration
  • Matrices
  • Trigonometry
  • Mathematics
Open In App
Next Article:
Bar Graph - How to Draw a Bar Graph & Examples
Next article icon

Bar Graph - How to Draw a Bar Graph & Examples

Last Updated : 22 Jan, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

A bar graph, also known as a bar chart, visually represents categorical data using rectangular bars. The height or length of each bar corresponds to the value it represents. These bars can be arranged vertically or horizontally. When plotted vertically, the bar chart is often referred to as a column chart.

Key elements of a bar graph include:

  • Axes: Most bar graphs have two axes.
    • The x-axis typically lists the categories being compared, and the y-axis represents the measured values.
  • Bars: Each bar’s length or height varies according to the data it represents.
  • Labels: Categories and values are labelled to make the data easy to understand.
  • Title: The title of the bar graph provides an overview of what the data represents.
  • Legend: Explains the meaning of different colours or patterns if multiple data sets are presented.
  • Scale: The units or intervals used on the axes to measure and represent the data accurately.

Table of Content

  • Types of Bar Graphs
  • Properties of Bar Graph
  • How to Draw a Bar Graph?
  • Difference between Line Graph, Bar Graph, Histogram and Pie Chart
  • Uses of Bar Graph / Applications of Bar Graphs in Real-Life
    • Advantages of Bar Chart
  • Bar Graph Examples
  • Bar Graph - FAQs

Types of Bar Graphs

The different types of bar graph such as

  • Vertical Bar Graph,
  • Horizontal Bar Graph,
  • Grouped Bar Graph

Let's discuss these in detail.

Vertical Bar Graph

Vertical bar graph is a type of data visualization technique used to represent data using vertical bars or columns. It is also known as a vertical bar chart.

Vertical Bar Graphs are the most common bar graph we come across. The bars of grouped data in vertical bar graphs lie vertically.
When dealing with long category names, it's easier to use Horizontal Bar Graphs. In Vertical Bar Graphs, the x-axis space is limited, making it challenging to display lengthy category names.

Vertical Bar Graph Representation
Illustration of Vertical Bar Graph

Horizontal Bar Graph

Horizontal bar graphs are the graphs that have their rectangular bars lying horizontally. This means that the frequency of the data lie on the x-axis while the categories of the data lie on the y-axis.

Choose Horizontal Bar Graphs when dealing with long category names, as they work better when there isn't enough space on the x-axis.

Horizontal Bar Graph Representation
Horizontal Bar Graph Illustration

Grouped Bar Graph

Grouped bar graphs are the bar charts in which multiple sets of data items are compared, with a single color used to denote a specific series across all sets. It is also called the clustered bar graph.

A grouped bar graph compares different sets of data items. It uses a single color to represent each series within the set.

  • The grouped bar graph is used to represent the discrete value for more than one object that shares the same category. As with basic Bar charts, both vertical and horizontal versions of grouped bar charts are available.
  • The grouped bar graph can be represented using both vertical and horizontal bar charts.

Here is a diagram illustrating Grouped Bar Graph.

Grouped Bar Graph Representation
Illustration of Grouped Bar Graph

Properties of Bar Graph

Key properties of Bar Graph are mentioned below:

  • Every bar graph has a uniform width which is used to analyze data according to different points.
  • It can be either horizontal or vertical.
  • Every bar graph has two axes, one for the Graph and the other for the quantity of the data.
  • The graph shows the comparison of data over a particular time.

How to Draw a Bar Graph?

Let's understand drawing a bar graph with an example of 5 students (A, B, C, D, E) and their weights: 45, 35, 25, 38, 40. We will have to follow a sequence of steps.

Here is a stepwise-process of creating bar graphs.

Step 1: First decide the title of the Bar Graph.
Step 2: Draw the x-axis(horizontal) and y-axis(vertical) and plot a graph using two axes.
Step 3: Now, Give name to X-axis and Y-axis and label both the axes.
Step 4: then just draw rectangular bars respectively according to their weight.
Step 5: Finally, draw the bar graph which represents the weight of the five students.

Difference between Line Graph, Bar Graph, Histogram and Pie Chart

The key difference between Bar Graph, Line graph , Histogram and Pie Chart is defined below:

Bar Graph

Line Graph

Histogram

Pie Chart

Discrete data typesUses a single line connecting pointsContinuous data typesUsed to show the composition of a whole
Bars of equal widthPoints connected in a seriesBars can have unequal widthCircle divided into section

compare values among different items

Used tracking changes in data over time

To show the distribution of a continuous variable

Typically used for categorical or percentage data

Data is represented with different heights of the barsShown through the rise and fall of the lineHeight of the bars represent data Sections of circle represent data
Represents categories or groupsBest for continuous dataRepresents frequency distribution of dataTypically represents positive values
Used for data in different classesEmphasizes trends and changes over timeUsed for data within the same classNo axes, labels are placed outside the pie slices
To compare different categories or groupsUsed for showing stock price changes over timeTo show the distribution of a continuous variableLabels are placed next to or inside each pie slice

Uses of Bar Graph / Applications of Bar Graphs in Real-Life

Some of the most important applications of Bar Graph are:

  • In education, they help students visualize and understand numerical data.
  • Bar graphs are handy for businesses. They help with financial analysis, market research, and presenting data like quarterly sales, customer demographics, or product comparisons.
  • In science, bar graphs are used to display and compare data from experiments or research studies.
  • They effectively present survey results, including responses to different questions or options.
  • They are used to display performance metrics in various fields, including sports, education, and business.
  • Governments and organizations use bar graphs to report on data like population statistics, environmental data, etc.

Advantages of Bar Chart

  • It represents the data in a graphical form, which is easier to understand.
  • It helps in analyzing the data at a glance.
  • It displays each information separately which is easier to understand.
  • It summarize a large data set in visual from.
  • It displays relative data or proportion.

Bar Graph Examples

To understand Bar graphs, let's solve some example questions on Bar Graph.

Example 1: Plot a Bar graph for the following data:

Cities

Population( in Millions)

New Delhi

35

Noida

10

Mumbai

25

Jaipur

5

Gurgaon

12

Solution: The Bar Graph for the above data is as follows:

Creating a Bar Graph
Bar Graph 2

Example 2: Plot the Bar Graph For the following Data:

FruitsClasses (No. of students)
 ABC
Apple221820
Banana162015
Mango202530
Litchi243015

Solution: The Grouped Bar Graph of the above data are as follows:

Making a Bar Graph
Bar Graph 3

Also Read,

  • Histogram
  • Line Graph
  • Pie Chart
  • Types of Graphs

Next Article
Bar Graph - How to Draw a Bar Graph & Examples

R

raushanikuf9x7
Improve
Article Tags :
  • Mathematics
  • School Learning
  • Class 7
  • Geeks Premier League
  • Math-Statistics
  • Maths-Class-7
  • Geeks Premier League 2023

Similar Reads

    Bar Graph | Meaning, Types, and Examples
    Bar graphs are one of the most common and versatile types of charts used to represent categorical data visually. They display data using rectangular bars, where the length or height of each bar corresponds to the value it represents. Bar graphs are widely used in various fields such as business, edu
    12 min read
    How to Create a Bar Chart in Excel?
    To learn how to create a Column and Bar chart in Excel, let's use a simple example of marks secured by some students in Science and Maths that we want to show in a chart format. Note that a column chart is one that presents our data in vertical columns. A bar graph is extremely similar in terms of t
    4 min read
    How to Create Advanced Charts and Graphs in Excel?
    Charts, graphics, and images are excellent ways to visualize and convey data, and Excel does the same for us by generating charts automatically. We might occasionally want to go beyond the basic charts that Excel generates for us. Let's learn about advanced charts and graphs used in excel, Advanced
    10 min read
    How to Make a Bar Graph in Excel: Step by Step Guide
    Bar graphs are one of the most versatile tools in Excel for visualizing and comparing data. Whether you’re tracking sales, analyzing survey responses, or presenting project milestones, bar graphs offer a straightforward way to highlight key trends and differences. Learning how to create a bar graph
    6 min read
    How to Draw a Horizontal Barplot in R
    A barplot is a representation of data in form of the bar the height of bar represents the number of values. In this article, we will discuss How to Draw a Horizontal Barplot in R programming language.  R language supports two ways to plot a bar plot, and we will discuss how this can be modified to b
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences