From e5ba630c59935e3b44e61324da476fbc4ed45c6d Mon Sep 17 00:00:00 2001 From: declerambaul Date: Thu, 7 Jun 2012 18:40:45 +0200 Subject: [PATCH] Fixed bug with callout that contain NaN numbers --- lib/graph/graph-model.co | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.0.4