Change future entries in heat map to be empty
This commit is contained in:
parent
8232a14518
commit
38744c81c5
3 changed files with 13 additions and 1 deletions
|
@ -26,6 +26,11 @@ angular.module('quay').directive('heatmap', function () {
|
|||
|
||||
if (!cal) {
|
||||
var start = moment().add($scope.startCount * 1, $scope.startDomain).toDate();
|
||||
var highlight = [];
|
||||
for (i = 0; i < 31; ++i) {
|
||||
var d = moment().add('day', i).toDate();
|
||||
highlight.push(d);
|
||||
}
|
||||
|
||||
cal = new CalHeatMap();
|
||||
cal.init({
|
||||
|
@ -40,6 +45,7 @@ angular.module('quay').directive('heatmap', function () {
|
|||
displayLegend: false,
|
||||
tooltip: true,
|
||||
weekStartOnMonday: false,
|
||||
highlight: highlight,
|
||||
legendColors: {
|
||||
empty: "#f4f4f4",
|
||||
min: "#c9e9fb",
|
||||
|
|
Reference in a new issue