From: declerambaul Date: Thu, 7 Jun 2012 16:40:45 +0000 (+0200) Subject: Fixed bug with callout that contain NaN numbers X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=c74f990446a3c3e4e705847db0e4ffa1cd6468f6;p=limn.git Fixed bug with callout that contain NaN numbers --- diff --git a/lib/graph/graph-model.co b/lib/graph/graph-model.co index 8e1c2ea..133ee90 100644 --- a/lib/graph/graph-model.co +++ b/lib/graph/graph-model.co @@ -252,8 +252,8 @@ Graph = exports.Graph = BaseModel.extend do # {{{ v = data[last - i] break if v? and not isNaN(v) if i > 0 - data .= slice 0, last - i - dates .= slice 0, last - i + data .= slice 0, last - (i-1) + dates .= slice 0, last - (i-1) # Calc index offsets latest = data.length - 1