π Hi there!
I'm back from Paris where I gave a little talk about dataviz in front of real people. That was awesome, even though I didn't get time to see the Eiffel Tower π.
If youβre looking to level up your teamβs dataviz skills, let me know! I gave 10 talks in 2024 and would love to do more in 2025. π
β
Anyway. As always, my goal this week is to share a quick dataviz tip you can add to your toolkit.
β
The hardest thing: Colors π¨
Last week I started a new section for my Matplotlib Journey project, diving into one of the hardest parts of chart design: colors.
Colors remind me a lot of CSSβtheyβre highly susceptible to the Dunning-Kruger effect:
At first, it feels simple: just pick what looks good to your eyes and you're good to go!
But then you encounter concepts like color models, color blindness, contrast, luminance, saturation...
Suddenly, you realize there's a lot more to it.
The Challenge of Background Colors
For instance, how do you choose the right background color for a chart?
While researching, I came across an excellent article by Lisa Charlotte Muth, who analyzed hundreds of charts from leading organizations.
She found out that most of these charts follow the same pattern:
Basically, charts with:
- Light-mode backgrounds: use high luminance and low saturation.
- Dark-mode backgrounds: never use pure black but slightly softened tones instead.
β
Why is this the case?
Medium-bright backgrounds are rare because theyβre tricky to pair with effective colors. For good contrast, the colors on top need to be either very dark or very bright, which isnβt always practical.
Similarly, highly saturated backgrounds clash with most color choices. Your background should support the data, not compete with it.
Key Takeaway
- Designing with colors is hard, and teaching it to programmers is even harder. π
- For your next chart, use a background with high luminance and low saturation
And if youβre into learning more, I canβt recommend Lisa Charlotte Muthβs work enough. It's the best and believe me I read a lot about data visualization!
β
Have a great evening and let's make some great charts this week π€!
Yan
PS: no idea what to gift for Christmas? Check my data-to-viz poster and support my open source work :)
β
βPPS: today a student described Matplotlib Journey as the best course he has ever taken. It made my day! If you like python, take a look!
β
β
π 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.
|
β
β
β
β
β
|
β