@@ -135,6 +135,7 @@ angular.module('g1b.calendar-heatmap', []).
135135 * Draw global overview (multiple years)
136136 */
137137 scope . drawGlobalOverview = function ( ) {
138+
138139 // Add current overview to the history
139140 if ( scope . history [ scope . history . length - 1 ] !== scope . overview ) {
140141 scope . history . push ( scope . overview ) ;
@@ -198,7 +199,7 @@ angular.module('g1b.calendar-heatmap', []).
198199 return d . year ( ) ;
199200 } ) ) ;
200201
201- // Add month data items to the overview
202+ // Add global data items to the overview
202203 items . selectAll ( '.item-block-year' ) . remove ( ) ;
203204 var item_block = items . selectAll ( '.item-block-year' )
204205 . data ( year_data )
@@ -232,7 +233,7 @@ angular.module('g1b.calendar-heatmap', []).
232233 // Hide tooltip
233234 scope . hideTooltip ( ) ;
234235
235- // Remove all month overview related items and labels
236+ // Remove all global overview related items and labels
236237 scope . removeGlobalOverview ( ) ;
237238
238239 // Redraw the chart
@@ -379,13 +380,13 @@ angular.module('g1b.calendar-heatmap', []).
379380 // Set in_transition flag
380381 scope . in_transition = true ;
381382
382- // Set selected month to the one clicked on
383+ // Set selected year to the one clicked on
383384 scope . selected = d ;
384385
385386 // Hide tooltip
386387 scope . hideTooltip ( ) ;
387388
388- // Remove all year overview related items and labels
389+ // Remove all global overview related items and labels
389390 scope . removeGlobalOverview ( ) ;
390391
391392 // Redraw the chart
0 commit comments