Article thumbnail

Best Charts to Show Discrete Data

In this article

This article dives into the world of discrete data, exploring how to bring it to life through captivating visuals. You’ll discover a range of chart types, including bar charts, stacked bars, column charts, and more.

In this part of the data visualization project, we will review discrete data graphs that help find similarities and differences between various categories of data and discuss their purposes and specifics.

But firstly, let’s sort out what a discrete data is.

What is discrete data?

Data is discrete if you can answer affirmatively on the following questions about it:

  • Is it countable?
  • Is it possible to divide the data into smaller parts? (i.e., to categorize it)

Discrete data can contain only a finite number of values. One of its notable properties is that, unlike continuous data, it can’t be measured, only counted.

Examples of discrete data: the number of players in a team, the number of planets in the Solar System.
Examples of non-discrete (continuous) data: height, weight, length, income, temperature.

The following charts work especially well for representing the discrete data:

Bar chart

The simplest and the most popular type of chart to show discrete data. It displays grouped data using rectangular bars with lengths that are proportional to the values. Bar charts are broadly used in marketing and finance.

Purpose

Use it to compare data points that are spread across categories with each other.

Pros

  • Makes data more readable if the categories have long names or if you have more than 10 categories

Recommendation

  • Arrange bars on the chart in a logical ordering: ascending or descending one

Examples and variations

  • A single-series chart in which the values are compared inside one category.
Bar chart example

Compare the population across different cities
  • This is an example of a clustered (grouped) bar chart. Use it for comparing multiple series inside the same category.
Clustered (grouped) bar chart example

Evaluate a company’s performance by sales, expenses, profits

Stacked bar chart

A stacked bar chart is composed of multiple bar series stacked horizontally one after the other. This modification of the bar chart makes it easier to track the variation in the individual values and their total value.

Purpose

Use it if you are interested in the proportional contributions either of categories to the total or of values within each category.

Pros

  • If designed wisely, this type of chart is the best option for comparing multiple categories by measuring the bar lengths

Recommendation

  • Limit the chart to six-seven series, otherwise, a chart will be cluttered and difficult to interpret

Example

stacked bar chart example

Compare sales of books divided by genres over the years

Column chart

It’s constructed the same way as a bar chart but with a vertical axis for categories and a horizontal – for their values.

Purpose

It helps track changes in values over time by comparing total column lengths.

Pros

  • Highly readable when comparing values between a small number of categories (less than 12)

Recommendation

  • In case your dataset has negative values, use the column chart instead of the bar chart as the negative values are associated with a downward direction

Examples and variations

  • A single-series column chart:
Single-series column chart example

Compare the changes in the motivation level of the employees during a day
  • Clustered (grouped) column chart:
Clustered (groped) column chart example

Compare the changes in the motivation and energy levels of the employees during a day

Stacked column chart

A stacked column chart is composed of multiple column data series stacked on top of one another.

Purpose

The stacked column chart is designed to compare totals and notice changes at the item level that are likely to have the most impact on changes in totals.

Pros

  • Best for part-to-whole comparisons over time or across categories.
  • It helps to get an understanding of the integral picture in a quick glance without a focus on the details.

Examples

Stacked column chart example

Compare sales of books divided by genres over the years
Motivation and energy correlation stacked column chart

Compare motivation and energy levels over the day

Bullet chart

A bullet chart is a modification of a bar chart adapted by modern business needs. It can be displayed both vertical and horizontal. The chart consists of a target marker that represents the target value, an achievement bar that represents the current value of a metric and a comparison range.

Purpose

It was designed by Stephen Few for tracking progress toward a goal and measuring how far you are from the target.

Pros

  • It removes the necessity to use circular/linear gauges and meters on a dashboard

Recommendation

  • Use custom background colors to encode the interpretation of values that lie within the comparison range

Example

Bullet chart example

Assess the company’s performance measures

Usual meaning: the lighter the background, the better the result. However, in the case of “Expenses”, according to its negative sense, you can reverse the quantitative scale.

Spider chart

In this chart, each variable’s axis starts from the center point. Axes are arranged radially around it. The value is presented by an anchor on the axis. This data point is connected with the axis by a line. It’s the process of plotting a polygon. As you may notice, it reminds a spider web; hence the name. Equivalent names are ‘polar chart’, ‘web chat’, ‘radar chart’, and ‘star plot’.

Purpose

It’s designed for comparing multivariate data that has three or more quantitative variables.

Pros

  • Works best for comparing products by highlighting their strengths (features) and weaknesses

Recommendations

  • Use color coding and labels to distinguish multiple items when comparing them.
  • Don’t be misled by the area of the polygons: it is increased by the squares of values. Thus, one may think that tiny changes are more important than they really are.
  • Take into account that the area and the shape of the polygons may vary significantly depending on the position of axes.

Examples

Spider chart example

Compare employees by skills
Spider chart example

Compare gadgets by their purposes

Summary

We truly hope this overview will help you decide which charts are best suited for your data and get a general idea about how you can compare discrete groups of data graphically.

Stay tuned for further updates!

What’s next?

Demos

Move up

Read more articles by category Data visualization

Explore

Read more

Simple Way to Analyze Complex Data Online

Quickly transform complex data into meaningful insights with its drag-and-drop interface and advanced features. Learn about solution that is ideal for both developers and business users.

Article thumbnail

List of best JavaScript components for report application

Explore the best JavaScript components for building robust report applications. This article covers top libraries like Chart.js, amCharts, Apache ECharts, D3.js, and more, comparing their features, pros, and cons to help you find the right data visualization and reporting tools for your business needs.

Article thumbnail

5 Tips on How to Visualize Data for Insightful Solutions

The article discusses how visual data representation can improve problem-solving by making complex information easier to understand. It offers practical tips on using tools like charts and infographics to simplify data and enhance decision-making.

Back to Blog