From 8e928a879a9fda5b1c143cc1c8f014a6c2cdbedc Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 5 Jul 2018 13:39:09 +0800 Subject: [PATCH] g.circular.js --- g.circular.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g.circular.js b/g.circular.js index e8d5458..dd67b40 100644 --- a/g.circular.js +++ b/g.circular.js @@ -68,9 +68,9 @@ Roo = typeof(Roo) != 'undefined' ? Roo: (imports ? imports.seed.Roo.Roo: {}); var barwidth = opts.barwidth || Math.min(Math.floor(r / cut), 12); -// if(cut < 8){ -// colors = colors.slice(2); -// } + if(len < 8){ + colors = colors.slice(2); + } if(opts.colors){ colors = opts.colors; -- 2.39.2