show chart all the way to now

This commit is contained in:
Radek Stepan 2013-08-19 22:39:46 +01:00
parent 1d9f887612
commit 82ad2a9f0e
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ module.exports =
total -= velocity if days[i] and not days[i].off_day
day
# Do we need to make a link to right now?
days.push { date: now, points: 0 } if (now = new Date()) > cutoff
cb null, days
# Render the D3 chart.