Skip to content

Commit

Permalink
Update comments in global overview
Browse files Browse the repository at this point in the history
  • Loading branch information
g1eb committed Dec 13, 2017
1 parent f218403 commit d2cd2d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/calendar-heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ var calendarHeatmap = {
* Draw global overview (multiple years)
*/
drawGlobalOverview: function() {

// Add current overview to the history
if (calendarHeatmap.history[calendarHeatmap.history.length - 1] !== calendarHeatmap.overview) {
calendarHeatmap.history.push(calendarHeatmap.overview);
Expand Down Expand Up @@ -219,7 +220,7 @@ var calendarHeatmap = {
return d.year();
}));

// Add month data items to the overview
// Add global data items to the overview
calendarHeatmap.items.selectAll('.item-block-year').remove();
var item_block = calendarHeatmap.items.selectAll('.item-block-year')
.data(year_data)
Expand Down Expand Up @@ -253,7 +254,7 @@ var calendarHeatmap = {
// Hide tooltip
calendarHeatmap.hideTooltip();

// Remove all month overview related items and labels
// Remove all global overview related items and labels
calendarHeatmap.removeGlobalOverview();

// Redraw the chart
Expand Down Expand Up @@ -400,13 +401,13 @@ var calendarHeatmap = {
// Set in_transition flag
calendarHeatmap.in_transition = true;

// Set selected month to the one clicked on
// Set selected year to the one clicked on
calendarHeatmap.selected = d;

// Hide tooltip
calendarHeatmap.hideTooltip();

// Remove all year overview related items and labels
// Remove all global overview related items and labels
calendarHeatmap.removeGlobalOverview();

// Redraw the chart
Expand Down Expand Up @@ -1676,4 +1677,4 @@ var calendarHeatmap = {
return time;
},

};
};

0 comments on commit d2cd2d2

Please sign in to comment.