From a2a6c19ac01879ddf4b0b113bfb78fea011dcfce Mon Sep 17 00:00:00 2001 From: mrezai Date: Thu, 10 Dec 2015 13:00:34 +0330 Subject: [PATCH] Fixed dashboard example crash because of index out of range --- _example/dashboard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_example/dashboard.go b/_example/dashboard.go index ecf8921..dadea65 100644 --- a/_example/dashboard.go +++ b/_example/dashboard.go @@ -126,8 +126,8 @@ func main() { list.Items = strs[t%9:] sp.Lines[0].Data = spdata[:30+t%50] sp.Lines[1].Data = spdata[:35+t%50] - lc.Data = sinps[t/2:] - lc1.Data = sinps[2*t:] + lc.Data = sinps[t/2%220:] + lc1.Data = sinps[2*t%220:] bc.Data = bcdata[t/2%10:] ui.Render(p, list, g, sp, lc, bc, lc1, p1) }