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

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 day 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 weeks ago

How to Future-Proof Warehouse Operations with Smart Inventory Management?

Effective inventory management is more crucial than ever in today's fast-paced business environment. It directly… Read More

1 month ago

Gramener Bags a Spot in AIM’s Top Data Science Service Providers 2024 Penetration-Maturity (PeMa) Quadrant

Gramener - A Straive Company has secured a spot in Analytics India Magazine’s (AIM) Challengers… Read More

3 months ago

Gramener Wins Nasscom AI Gamechangers 2024 Award for Responsible AI

Recently, we won the Nasscom AI Gamechangers Award for Responsible AI, especially for our Fish… Read More

4 months ago

Master Supply Chain Resilience: 5 Powerful Lessons from Our Location Intelligence Webinar

Supply chain disruptions can arise from various sources, such as extreme weather events, geopolitical tensions,… Read More

4 months ago

This website uses cookies.