Categories: Visualizations

Colouring the calendar

Reading Time: 3 mins

Sometimes, just viewing a time series as a simple graph isn’t enough.

The graph below shows the daily visitors to a leading Indian website in 2011. The overall trends are apparent. There was a dip in Mar-Apr, and again in Oct, followed by a steady rise in November.

But what’s also apparent is a weekly cyclicality: the steady pattern of rises and falls several times a month, that disturbs this trend.

Yet, there’s considerable insight within that cyclicality, that a calendar heatmap can bring out. Here is the same data on a calendar heatmap. This is simply a calendar on which the values are plotted as a range of colours: red for fewer visitors, green for more visitors.

Those dips you saw on the line graph? Those were Sundays, when browsing activity dives down consistently. However, as you can see from above, not all Sundays are equal. July 31st and August 7th, though they were Sundays, had considerable traffic. Similarly, weekdays can also experience dips. Jun 23rd is an example of a somewhat unusual dip, and so is Oct 26th – Diwali.

Calendar heatmaps provide a way of exploring information at a far richer level of detail than traditional line graphs or bar graphs do.

For example, they focus on weekly trends. In businesses where there is a weekly cyclicality, it becomes much easier to spot an unusual weekday. In the month of August (see below), it’s fairly obvious from both graphs that August 14th had a bad dip. But what becomes clearer from the calendar map (but not the line graph) is that August 13th was a relatively bad Saturday, and August 16th was a relatively bad Tuesday.

Secondly, they focus on individual days. Its a lot easier to see the exact date on which an event occurred. For example, in the graph alongside, there has been a big dip in October. The most significant has been in the last week, specifically on October 26th. Once you know the date, it’s easy to associate the change in behaviour with Diwali as its cause.

On the line graph below, you can see the major dip in October. However, mapping this specifically to Diwali is a far tougher task.

Below is another calendar heatmap – this time, showing the percentage of visitors from New Delhi. Consider the month of August. We saw from the earlier calendar map that there was a decline in traffic between August 13 – 16. If that decrease was uniform across cities, the colours below would be uniform too. However, New Delhi’s percentage share declines as well on these days.

Apparently, the people at New Delhi are more likely to spend the day outside on Independence Day than most other cities! In fact, they seem to spend the whole of August avoiding browsing. However, the same cannot be during of Diwali. Delhi-ites are as likely / unlikely to be browsing during Diwali as any denizens of any other city.

The next time you look at data with weekly patterns, where you need to figure out quickly when exactly the numbers rose or fell, do try out a calendar heatmap.

Gramener - A Straive Company

Gramener – A Straive company is a design-led data science firm. We build custom Data & Al solutions that help solve complex business problems with actionable insights and compelling data stories.

Leave a Comment
Share
Published by
Gramener - A Straive Company
Tags: Retail

Recent Posts

Enhancing Warehouse Accuracy with Computer Vision

In today’s fast-paced world of e-commerce and supply chain logistics, warehouses are more than just… Read More

5 days ago

How AI is Redefining Quality Control and Supercharging OEE Optimization?

What does it mean to redefine the future of manufacturing with AI? At the heart… Read More

3 weeks ago

How is AI Transforming Cold Chain Logistics in Healthcare?

In 2022, Americans spent USD 4.5 trillion on healthcare or USD 13,493 per person, a… Read More

4 weeks ago

How Can CEOs Slash GenAI Costs Without Sacrificing Innovation?

In the rush to adopt generative AI, companies are encountering an unforeseen obstacle: skyrocketing computing… Read More

1 month ago

Top 7 Benefits of Using AI for Quality Control in Manufacturing

AI in Manufacturing: Drastically Boosting Quality Control Imagine the factory floors are active with precision… Read More

1 month ago

10 Key Steps to Build a Smart Factory

Did you know the smart factory market is expected to grow significantly over the next… Read More

2 months ago

This website uses cookies.