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=e5ba630c59935e3b44e61324da476fbc4ed45c6d;p=kraken-ui.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