Skip to content

Commit 32863d7

Browse files
committed
More specific classnames for grouped block items.
1 parent 4fd9c07 commit 32863d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

calendar-heatmap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ angular.module('g1b.calendar-heatmap', []).
453453
var itemScale = d3.scale.linear()
454454
.range([0, item_width]);
455455

456-
item_block.selectAll('rect')
456+
item_block.selectAll('.item-block-rect')
457457
.data(function (d) {
458458
return d.summary;
459459
})
460460
.enter()
461461
.append('rect')
462-
.attr('class', 'item item-block')
462+
.attr('class', 'item item-block-rect')
463463
.attr('x', function (d) {
464464
var total = parseInt(d3.select(this.parentNode).attr('total'));
465465
var offset = parseInt(d3.select(this.parentNode).attr('offset'));
@@ -892,7 +892,7 @@ angular.module('g1b.calendar-heatmap', []).
892892
* Transition and remove items and labels related to month overview
893893
*/
894894
scope.removeMonthOverview = function () {
895-
svg.selectAll('.item-block')
895+
svg.selectAll('.item-block-rect')
896896
.transition()
897897
.duration(transition_duration)
898898
.ease('ease-in')

0 commit comments

Comments
 (0)