Discrete Data Graph Example: Real-World Examples & Tutorial

Zachary Aug 05, 2026

Data visualization is a powerful tool that enables us to understand and interpret complex data effectively. Graphs, in particular, provide a visual representation of data that can reveal trends, patterns, and outliers that might otherwise go unnoticed. One type of graph that is often used to represent discrete data, or data that can be counted or categorized, is the bar graph.

the different types of graphs are shown in this diagram, and there is also an info sheet
the different types of graphs are shown in this diagram, and there is also an info sheet

Bar graphs are composed of rectangular bars with lengths proportional to the values that they represent. They are well-suited to display discrete data because they can clearly show the differences and relationships between different categories or groups. In this article, we will explore an example of discrete data represented in a bar graph and delve into the key aspects of this type of graph.

four squares with dots in the middle and one line on each side that shows different types of
four squares with dots in the middle and one line on each side that shows different types of

Understanding Bar Graphs for Discrete Data

Bar graphs are typically used when comparing data from two or more categories. They are particularly useful when the data is discrete, as they can effectively illustrate the differences and relationships between different groups.

Basic Graph Types ( Read ) | Statistics
Basic Graph Types ( Read ) | Statistics

Each bar in a bar graph represents a unique category or group, and the length of the bar represents the value associated with that category. The bars are usually placed side by side, allowing for easy comparison of the lengths, and hence, the values they represent.

Whole Numbers and Intervals

Interpreting patterns of gene expression with self-organizing maps: Methods and application to hematopoietic differentiation | PNAS
Interpreting patterns of gene expression with self-organizing maps: Methods and application to hematopoietic differentiation | PNAS

Since bar graphs are used to represent discrete data, the values plotted on the graph are typically whole numbers or integers. However, it is also possible to use bar graphs to represent data with a continuous scale, such as temperature or time, as long as the data is grouped into intervals.

For instance, suppose we have temperature data for a city over a week, measured in five-degree intervals (0-5°C, 5-10°C, ..., 85-90°C). We could represent this data in a bar graph, with each bar showing the frequency of temperatures within a specific interval.

Stacked and Grouped Bar Graphs

Interpreting Correlation Coefficients
Interpreting Correlation Coefficients

Bar graphs can be further enhanced by using variations such as stacked or grouped bar graphs. In a stacked bar graph, the bars are divided into segments, allowing for the comparison of multiple variables within a single category. In a grouped bar graph, meanwhile, bars are placed in groups, which are useful when comparing data with a common baseline.

For example, a stacked bar graph could display the number of customers in different age groups who prefer different types of products, while a grouped bar graph could show the number of customers within each age group who visited a store during different times of the day.

Real-world Example: Olympics Medal Tally

Antipsychotic dose and efficacy for acute schizophrenia spectrum disorders: an updated systematic review and dose-response meta-analysis
Antipsychotic dose and efficacy for acute schizophrenia spectrum disorders: an updated systematic review and dose-response meta-analysis

To illustrate the use of bar graphs for discrete data, let's consider the medal tally from a recent Olympic Games. Medals were awarded to different countries, making this a categorical, or discrete, data set.

In this case, a bar graph would be an appropriate choice for visualizing the data. Each country would be represented by a bar, and the length of the bar would correspond to the number of medals won. The data would be sorted in descending order, based on the number of medals won, so that the top-performing countries are clearly visible at a glance.

Scatter Diagram
Scatter Diagram
Normal Distribution vs t-Distribution 📈 | Key Differences Explained
Normal Distribution vs t-Distribution 📈 | Key Differences Explained
What is Data?
What is Data?
Nominal Data: Definition & Examples
Nominal Data: Definition & Examples
What is the best way to visualize relationship between discrete and continuous variables?
What is the best way to visualize relationship between discrete and continuous variables?
🔢 Discrete vs. Continuous: Two Types of Data, One Big Difference! 📊
🔢 Discrete vs. Continuous: Two Types of Data, One Big Difference! 📊
W.E.B. DuBois's Color Line From 1900, in Visuals
W.E.B. DuBois's Color Line From 1900, in Visuals
the scatter diagram - how do i use it's coreation? 1
the scatter diagram - how do i use it's coreation? 1
How Many Clusters? | Towards Data Science
How Many Clusters? | Towards Data Science
a table with different fruits and vegetables on it
a table with different fruits and vegetables on it

Categorical Data on the x-axis

In this example, the countries are our categories, and they are displayed on the x-axis. The advantage of this layout is that it enables easy comparison between the number of medals won by different countries, making it simple to determine who the strongest competitors were.

For greater clarity, the bars could be colored according to the medal type (gold, silver, or bronze), allowing viewers to see which countries were competitive in each category. The horizontal axis could also be further categorized, with countries grouped according to continents or other relevant criteria.

Ordinal Data on the y-axis

Meanwhile, the number of medals won is our ordinal data, displayed on the y-axis. The bars are placed side by side in order of the number of medals won, so that the countries with the most medals are positioned at the top of the graph.

The value axis (y-axis) should clearly indicate the number of medals corresponding to each increment on the axis, to make the graph easy to read and interpret. For added context, the total number of participants from each country could also be included on the graph, helping viewers understand the scale of each country's performance.

The analysis of discrete data is a foundational skill in data science, and bar graphs are an invaluable tool for this task. By effectively visualizing categorical and ordinal data, bar graphs enable us to identify trends, patterns, and outliers that might otherwise go unnoticed. Whether you're comparing medal totals, market shares, or customer satisfaction scores, bar graphs provide a clear and intuitive way to communicate your findings.