• About
  • Advertise
  • Privacy & Policy
  • Contact
Thursday, January 1, 2026
  • Login
  • Home
    • Home – Layout 1
    • Home – Layout 2
    • Home – Layout 3
    • Home – Layout 4
    • Home – Layout 5
    • Home – Layout 6
  • News
    • All
    • Business
    • Politics
    • Science
    • World
    Hillary Clinton in white pantsuit for Trump inauguration

    Hillary Clinton in white pantsuit for Trump inauguration

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Tech
    • All
    • Apps
    • Gadget
    • Mobile
    • Startup
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
    • All
    • Gaming
    • Movie
    • Music
    • Sports
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    So you want to be a startup investor? Here are things you should know

    So you want to be a startup investor? Here are things you should know

  • Lifestyle
    • All
    • Fashion
    • Food
    • Health
    • Travel
    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    How couples can solve lighting disagreements for good

    How couples can solve lighting disagreements for good

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
  • Review
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    Intel Core i7-7700K ‘Kaby Lake’ review

    Intel Core i7-7700K ‘Kaby Lake’ review

No Result
View All Result
Ai News
Advertisement
  • Home
    • Home – Layout 1
    • Home – Layout 2
    • Home – Layout 3
    • Home – Layout 4
    • Home – Layout 5
    • Home – Layout 6
  • News
    • All
    • Business
    • Politics
    • Science
    • World
    Hillary Clinton in white pantsuit for Trump inauguration

    Hillary Clinton in white pantsuit for Trump inauguration

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Tech
    • All
    • Apps
    • Gadget
    • Mobile
    • Startup
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
    • All
    • Gaming
    • Movie
    • Music
    • Sports
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    So you want to be a startup investor? Here are things you should know

    So you want to be a startup investor? Here are things you should know

  • Lifestyle
    • All
    • Fashion
    • Food
    • Health
    • Travel
    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    How couples can solve lighting disagreements for good

    How couples can solve lighting disagreements for good

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
  • Review
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    Intel Core i7-7700K ‘Kaby Lake’ review

    Intel Core i7-7700K ‘Kaby Lake’ review

No Result
View All Result
Ai News
No Result
View All Result
Home Machine Learning

Data Visualization Explained (Part 3): The Role of Color

AiNEWS2025 by AiNEWS2025
2025-10-09
in Machine Learning
0
Data Visualization Explained (Part 3): The Role of Color
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


This is the third article in my data visualization series. See Part 1: “Data Visualization Explained: What It Is and Why It Matters” and Part 2: “Data Visualization Explained: An Introduction to Visual Variables.”

do you see in the picture below?

Most people see four: white, green, and two different shades of pinkish-red. In reality, those two shades are exactly the same; there are only three colors in the image.

This popular optical illusion illustrates an important fact to consider when designing data visualizations: Poorly chosen color combinations can trick the human eye. For a complete treatment of color, I would need to delve into physiological details of the human eye and learn how we actually “see” color.

However, seeing as this is not an optometry article, I’ll instead focus on the fundamentals of color usage that you will need to build clear data visualizations.

The Difference Between Color Hue and Color Value

When I introduced visual encoding channels in the previous article, I presented two different channels related to color: hue and value. Let us discuss these formally.

Color hue is what you generally think of when you hear the word “color.” Red, green, blue, pink, yellow, etc. are all different hues. Color value, on the other hand, refers to the “lightness” of an individual hue. The image below illustrates different values of the rainbow colors, showing how the same hue can vary greatly in lightness/saturation:

Image by Wikimedia Commons

While both of these can be effective visual encodings (see my previous article in this series for a detailed discussion on visual encodings), color value has one notable advantage over hue: It can still be perceived if a visualization is printed in grayscale.

Types of Color Scales

If you want to use color as a visual encoding, you need to start by choosing a color scale. In doing so, there are a few characteristics you need to consider:

  • If your data is nominal, then you can use a categorical color scale, which relies solely on color hue.
  • For quantitative data, you’ll need to make two additional decisions: 1) whether your scale will be sequential or divergent (i.e., if it will use one or two hues), and 2) whether your scale will be continuous or divided into classes.

Thus, there are five color scales at our disposal, all of which we will discuss below: 1) sequential and unclassed, 2) sequential and classed, 3) divergent and unclassed, 4) divergent and classed, and 5) categorical [1].

Sequential scales (one hue) are useful for visualizing numerical values that go from low to high. Divergent scales can prove helpful when values go from negative to positive or when the designer wishes to emphasize some difference between the colors on two ends of the scale.

Of course, these are just general rules. Different types of scales are best depending on the particular visualization, and sometimes more than one can work.

Sequential and unclassed

The following map uses a sequential, unclassed color scale to illustrate the fraction of Australians that identified as Anglican at the time of the 2011 census. We can see that a single hue, green, increases in value from light to dark. Since there is only one color, there is no divergence, and since the scale is continuous, there are no classes.

Image by Toby Hudson on Wikimedia Commons

Sequential and classed

In contrast to the visualization above, we can see that the map of the United States below has discrete classes which vary the color value. It is still sequential, as only a pink hue is used. The color value is increased as the percentage of adults in their early 20s within a county increases.

One noteworthy element of this visualization is the uneven nature of the classes. (Note the width of the largest category.) This is not always good practice, especially if no reason is given. Image by Derek Montaño on Wikimedia Commons.

Divergent, classed and unclassed

Divergent scales are a bit trickier to understand, so let’s consider both types together in a comparative example. In doing so, we’ll also see the different advantages of classed and unclassed scales.

The two charts below were generated in Python using mock data. The data consists of the following visual representations (i.e., visual encoding channels):

  • The x-axis consists of a number representing store location.
  • The y-axis represents the months of the year.
  • The color represents a “customer satisfaction score” collected by the fictional stores via monthly surveys.

The classed vs. unclassed aspect of these visualizations is much like in the sequential scales above. In the left (unclassed) scale, the full totality of values is represented, whereas in the right (classed) one, colors represent grouped buckets of values. The left visualization provides more precision, but the right one is easier to interpret and apply.

The divergent aspect of these scales is more convoluted. Let’s break it down:

  • The divergent scale here uses two colors: red and green (not the most accessible colors in the world, as we will see later in the article).
  • The neutral, white color (or the two light colors in the classed scale) represents a logical “middle point” in the data, which in this case is the value 0.
  • This middle point is key, as it makes for a situation where a divergent scale lends itself naturally to the data. It makes little sense to use more than one color if values are just moving in one direction without a meaningful center.

Categorical

The final, and arguably most straightforward, color scale type is a categorical one. The chart below, which shows government funding breakdowns across various countries, provides a clear example.

Image by Our World in Data

If you have been paying attention to the principles discussed in this chapter this far, you will likely notice that this is not a particularly well-designed data visualization. It gets the general point across, but there are a few too many different colors, resulting in a confusing final design.

That said, it is an effective use of a categorical scale, correctly applying this scale type to nominal data (data that has distinct, unordered categories). A common mistake in data visualization—and one you should take care to avoid—is using a categorical scale with several different hues when your data shows a clear numerical increase or decrease. In those situations, refer to one of the color scales discussed above, depending on your specific data.

That sums up the basics of color scales that you must know to engage in effective data visualization. To conclude, let’s look at a couple more tips for using color well.

(Don’t) Use Color Redundantly

It can be tempting to use color in a visualization when it is not needed. For example, it’s quite common to see bar graphs with clear x-axis labels to distinguish the bars that still have bars of different colors.

This is not wrong, but it may be needless. If there are only a few categories and they’re linked with other visualizations, by all means use color to provide an additional visual cue. However, if the visualization functions fine without it, then don’t force it.

In general, any and all redundant encodings (representations) should be avoided unless they provide some additional ease of interpretation for the viewer. It is either wasteful, as that encoding channel could be used for a different variable, or confusing, as the viewer is left to determine if the additional encoding is depicting something that is going over their head.

Make Color Palettes Accessible

This last point it short, but incredibly important. Do not assume that simply because you can distinguish among the colors in a visualization, so can everyone else. Data visualizations should be accessibly by everyone, including people who have various types of colorblindness [2].

For example, consider the Python visualizations in the section on divergent color scales above. Do you think someone with red-green color blindness will be able to interpret it correctly? Unlikely.

Luckily, we don’t need to do too much extra work to ensure our visualizations are accessible. There are countless online tools [3, 4, 5] which automatically check the accessibility of your chosen color palettes. Some will even help you generate them. Take advantage of them to make your visualizations as accessible as possible.

Final Thoughts

Congratulations! With the third article in this series, you have learned the essential principles you will need to design compelling data visualizations. In the articles to come, we will finally start designing and building our own visualizations! Until then.

References

[1] https://blog.datawrapper.de/which-color-scale-to-use-in-data-vis/
[2] https://www.nei.nih.gov/learn-about-eye-health/eye-conditions-and-diseases/color-blindness/types-color-vision-deficiency
[3] https://coolors.co/contrast-checker/112a46-acc8e5
[4] https://webaim.org/resources/contrastchecker/
[5] https://accessibleweb.com/color-contrast-checker/

Source link

#Data #Visualization #Explained #Part #Role #Color

Tags: data scienceData StorytellingData VisualizationEditors PickVisual Design
Previous Post

One NASA science mission saved from Trump’s cuts, but others still in limbo

Next Post

Bill Gates: Our best weapon against climate change is ingenuity

AiNEWS2025

AiNEWS2025

Next Post
Bill Gates: Our best weapon against climate change is ingenuity

Bill Gates: Our best weapon against climate change is ingenuity

Stay Connected test

  • 23.9k Followers
  • 99 Subscribers
  • Trending
  • Comments
  • Latest
A tiny new open source AI model performs as well as powerful big ones

A tiny new open source AI model performs as well as powerful big ones

0
Water Cooler Small Talk: The Birthday Paradox 🎂🎉 | by Maria Mouschoutzi, PhD | Sep, 2024

Water Cooler Small Talk: The Birthday Paradox 🎂🎉 | by Maria Mouschoutzi, PhD | Sep, 2024

0
Ghost of Yōtei: The acclaimed Ghost of Tsushima is getting a sequel

Ghost of Yōtei: The acclaimed Ghost of Tsushima is getting a sequel

0
Best Headphones for Working Out (2024): Bose, Shokz, JLab

Best Headphones for Working Out (2024): Bose, Shokz, JLab

0
MIT engineers design an aerial microrobot that can fly as fast as a bumblebee

MIT engineers design an aerial microrobot that can fly as fast as a bumblebee

2025-12-31
Production-Ready LLMs Made Simple with the NeMo Agent Toolkit

Production-Ready LLMs Made Simple with the NeMo Agent Toolkit

2025-12-31
Here we go again: Retiring coal plant forced to stay open by Trump Admin

Here we go again: Retiring coal plant forced to stay open by Trump Admin

2025-12-31
Why inventing new emotions feels so good

Why inventing new emotions feels so good

2025-12-31

Recent News

MIT engineers design an aerial microrobot that can fly as fast as a bumblebee

MIT engineers design an aerial microrobot that can fly as fast as a bumblebee

2025-12-31
Production-Ready LLMs Made Simple with the NeMo Agent Toolkit

Production-Ready LLMs Made Simple with the NeMo Agent Toolkit

2025-12-31
Here we go again: Retiring coal plant forced to stay open by Trump Admin

Here we go again: Retiring coal plant forced to stay open by Trump Admin

2025-12-31
Why inventing new emotions feels so good

Why inventing new emotions feels so good

2025-12-31
Footer logo

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Follow Us

Browse by Category

  • AI & Cloud Computing
  • AI & Cybersecurity
  • AI & Sentiment Analysis
  • AI Applications
  • AI Ethics
  • AI Future Predictions
  • AI in Education
  • AI in Fintech
  • AI in Gaming
  • AI in Healthcare
  • AI in Startups
  • AI Innovations
  • AI News
  • AI Research
  • AI Tools & Automation
  • Apps
  • AR/VR & AI
  • Business
  • Deep Learning
  • Emerging Technologies
  • Entertainment
  • Fashion
  • Food
  • Gadget
  • Gaming
  • Health
  • Lifestyle
  • Machine Learning
  • Mobile
  • Movie
  • Music
  • News
  • Politics
  • Review
  • Robotics & Smart Systems
  • Science
  • Sports
  • Startup
  • Tech
  • Travel
  • World

Recent News

MIT engineers design an aerial microrobot that can fly as fast as a bumblebee

MIT engineers design an aerial microrobot that can fly as fast as a bumblebee

2025-12-31
Production-Ready LLMs Made Simple with the NeMo Agent Toolkit

Production-Ready LLMs Made Simple with the NeMo Agent Toolkit

2025-12-31
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.