πŸ“ˆ Timeseries + variation = ❀️


πŸ‘‹ Hi!

This week, one of my LinkedIn posts gained some traction.

It turns out that most people still default to simple line charts when visualizing temporal data.
​
Line charts are great. But, there are many other alternatives that can bring out more insights depending on your data!

So, let’s go through a few alternatives you can consider the next time you’re working with temporal data:


1️⃣ Streamgraph

Less accurate, but it creates organic, beautiful shapes that are truly eye-catching.
​
✨ Use it if there’s an obvious story in your data. Streamgraphs can make patterns stand out visually, but they are not the most accurate so they won't work for small variations!


2️⃣ Heatmap

Super useful when you have many series to compare.
​
If you have more than ~7 groups, line charts become unreadable (often called "spaghetti charts".
​
The heat map can be a great alternative as each group goes on its line.
​
✨ Sort your series to group similar patterns together. It’s a powerful way to see patterns across different dimensions.


3️⃣ Candlestick

For financial data, candlestick charts are the go-to. They offer a more detailed look into the market trends over time.

They display the open, high, low, and close prices of a financial asset over a specified time period, with each "candlestick" representing one period of data.
​
In R, I would go for the dygraphs package to build them:
​


4️⃣ Small Multiples

A great alternative to line charts when you’re working with more than five series that might turn into a spaghetti mess.

It divides the data into smaller, manageable parts while keeping the overall picture intact.
​
In my opinion this is one of the most powerful, under-used dataviz technique. In Matplotlib Journey we even dedicated a full lesson about it!
​


5️⃣ Stacked Area Chart

If you’re more interested in showing the total value of multiple series, a stacked area chart is a strong choice.

This chart style helps illustrate how different parts contribute to the whole over time.
​
Be careful though. It is very hard to read the evolution of each group individually as they do not have a common baseline!


6️⃣ Bump Chart

Best used when you're focused on the evolution of ranks or positions.
​
✨ Use it if ranking is key: bump charts make it easy to follow the movement of items within a ranked list over time.
​
​


7️⃣ Area Chart

A simple upgrade from a line chart when you have a single series, and the Y-axis starts at zero.

A line chart with just 1 line feels a bit empty. Use an area chart instead to make the trend more obvious!
​
In R, use dygraphs to get an interactive version! It offers the little "mini-graph" at the bottom that gets you some context when you use on a specific area. That's a very good feature imo!


8️⃣ Calendar Heatmap

If each data point corresponds to a day, a calendar heatmap can uncover hidden weekly, monthly, or yearly patterns.
​
And good news, Joseph Barbier just built a new python library to build them easily!

(btw, Joseph is my associate, we built Matplotlib Journey together and the packages he creates are πŸ”₯πŸ”₯πŸ”₯ !)​
​


9️⃣ What else?!

So, what am I missing? I'd love to hear your thoughts!

In any case, I hope this sparks some creative ideas for your next project involving temporal data.

Let me know if any of these options stand out for you, and let's chat again next week!

Yan

PS: We’re nearly at 10k readers! 😳
If you want your friends to create better charts too, please share this newsletter with them!
​

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