Skip to content

Commit

Permalink
Chart uses specified fill colors instead of 'gray'
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
phillipjohnson committed Dec 6, 2016
1 parent 329a1b2 commit c1e314a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calendar-heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function calendarHeatmap() {
.attr('class', 'day-cell')
.attr('width', SQUARE_LENGTH)
.attr('height', SQUARE_LENGTH)
.attr('fill', 'gray')
.attr('fill', function(d) { return color(countForDate(d)); })
.attr('x', function (d, i) {
var cellDate = moment(d);
var result = cellDate.week() - firstDate.week() + (firstDate.weeksInYear() * (cellDate.weekYear() - firstDate.weekYear()));
Expand Down

0 comments on commit c1e314a

Please sign in to comment.