From 8fe3ab77671eb974848df1341dfc325da2d9b31d Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 6 Jul 2018 10:56:34 +0800 Subject: [PATCH] g.circular.js --- g.circular.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g.circular.js b/g.circular.js index 873fa7b..d5a32cc 100644 --- a/g.circular.js +++ b/g.circular.js @@ -68,8 +68,8 @@ Roo = typeof(Roo) != 'undefined' ? Roo: (imports ? imports.seed.Roo.Roo: {}); var barwidth = opts.barwidth || Math.min(Math.floor(r / cut), 12); - if(len < cut){ - colors = colors.slice(cut - len); + if(len < 8){ + colors = colors.slice(8 - len); } if(opts.colors){ -- 2.39.2