πŸ” Unstack This: a new chart type you'll definitely use!


πŸ‘‹ Hi!

Hope things are going great on your side of the world.
​
Over here, life is pretty sweet: I'm writing this while sipping mint tea in Morocco, where my brother is getting married! β˜€οΈπŸŽ‰

Anyway, today I want to share something I love about the dataviz world: It's 2025, and somehow...

We’re still inventing new chart types!
​
Let me show you in just a few minutes as usual.

​

🀯 The trouble with stacking

Stacked bar & area charts are everywhere.
​
But they have a problem: they make it really hard to compare subgroups, especially the ones that aren’t sitting at the bottom.

Take this example from my Data to Viz project. Can you tell how the middle green group changes over time?

It’s tough, right?
​
The lack of a shared baseline makes it almost impossible. (Answer is here btw).

​

πŸ”„ Grouped barplot to the rescue?

A grouped barplot fixes this by placing bars side-by-side instead of on top of each other.

Now, you can compare subgroups easily... but it's the total of each group that becomes very hard to grasp. πŸ™ˆ
​
You’d have to sum all the bars in your head.

​

➑️ Nested Column Charts

A few weeks ago, something cool popped up in the dataviz bubble.
​
A new chart type called the nested column chart, apparently invented by Brittany Rosenau.

Imagine a grouped barplot, but with a big grey block behind the bars representing the total.

It’s brilliant. πŸ”₯

Now you can compare both the subgroups and the total at a glance.

How did I not think of this earlier?


πŸ‘¨β€πŸ³ Make your own!

You know I love dataviz tools & programming. So here is how to make this at home:

Python: Joseph Barbier and I made a tutorial on the Python Graph Gallery.

R: Here's a quick gist to make it with ggplot2.

React + D3.js: Of course I had to build a version for web devs! With an extra touch: hover over subgroup names to highlight them in the chart ✨


So next time you’re about to reach for a stacked or grouped barplot… try a nested column chart instead.

And if you do, send me a screenshot. Seriously. It’ll make my day.

Cheers,
​
Yan
​
​PS: another cool thing happened this week. A student of my Matplotlib Journey course used his newly acquired skills to make a pretty chart that triggered a lot of interest on LinkedIn.
​
It's a cool way to represent a population pyramid so I thought I would share it too :)

​

​

Yan Holtz

​Find me on X, LinkedIn, or check my Homepage​

​

πŸ‘‹ By the way, here is how I can help!

​

  • Master R: Join my productive R workflow online course, already helping hundreds to excel in R, Quarto, and GitHub.
  • Team Training: Hire me to train your team on Data Visualization and Programming.
  • Engaging Talks: Book me for short, impactful talks on Data Visualization and Programming.

​

Check yan-holtz.com or hit reply any time! I love hearing from you.

​

​

​

​

​

​

https://preview.convertkit-mail2.com/unsubscribe​
​Unsubscribe Β· Preferences​

background

Subscribe to Dataviz Universe