Introduction
Before getting into the details of this article, please go through my earlier article on heatmaps.
Cal-HeatMap Custom Domains and Sub Domains
In our earlier example, we created a heatmap with the typical look of data shown for every month and on a daily basis using JavaScript. (Refer to below screenshot).

To display the heatmap in the above format, we passed the domain as a month and the subdomain as day. Refer to the below screenshot from our earlier codebase.

Showing call volume of a service center based on Year, Month and Day ranges.
Let's consider a scenario in which we need to display the call volume of a service center across the entire year. Our decision-makers need information,such as how the service center is doing across the year and across the months.
Also they would like to see how the service center is doing within a day for every hour. To achieve these different formats, Cal-HeatMap needs to be generated using appropriate domain and subdomains values.
Now let's follow the below steps for our refined business case.
Create or update index.html using the following code.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cal-Heatmap Samples</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="http://cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.min.js"></script>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/cal-heatmap/3.3.10/cal-heatmap.css" />
</head>
<body>
<div class="container">
<div class="page-header">
<h2>Cal-HeatMap Samples</h2>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<span class="glyphicon glyphicon-equalizer"></span>Service Call Statistics
<div class="pull-right">
Display :
<select id="selDomain">
<option value="">None</option>
<option value="year">By Year</option>
<option value="month">By Month</option>
<option value="day">By Day</option>
</select>
<select id="selSubDomain">
<option value="">None</option>
<option value="month">By Month</option>
<option value="day">By Day</option>
<option value="hour">By Hour</option>
</select>
</div>
</div>
<div class="panel-body">
<div id="heatmap-navigation">
<button id="heatmap-previous" style="margin-bottom: 5px;" class="btn-xs">
<i class="glyphicon glyphicon-chevron-left"></i>
</button>
<button id="heatmap-next" style="margin-bottom: 5px;" class="btn-xs">
<i class="glyphicon glyphicon-chevron-right"></i>
</button>
</div>
<div id="cal-heatmap"></div>
</div>
</div>
</div>
</div>
<script src="app.js" type="text/javascript"></script>
</div>
</body>
</html>





Shubham KumarPosted Feb 26, 2016, 5:52 AM
i am not read part 2 but do asap nice
Sibeesh VenuPosted Feb 26, 2016, 4:35 AM
Nice Share
Gowtham KPosted Feb 25, 2016, 12:42 PM
Good One, Thanks for sharing:)
Sonu ChaudharyPosted Feb 25, 2016, 6:06 AM
nice artical