projects
/
g.raphael
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e0568
)
g.circular.js
author
Edward
<edward@roojs.com>
Thu, 5 Jul 2018 05:35:29 +0000
(13:35 +0800)
committer
Edward
<edward@roojs.com>
Thu, 5 Jul 2018 05:35:29 +0000
(13:35 +0800)
g.circular.js
patch
|
blob
|
history
diff --git
a/g.circular.js
b/g.circular.js
index
c5e485a
..
fd9d3fb
100644
(file)
--- a/
g.circular.js
+++ b/
g.circular.js
@@
-68,6
+68,14
@@
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(10 - cut);
+ }
+
+ if(opts.colors){
+ colors = opts.colors;
+ }
+
var tempVal = [];
for (var i = 0; i < len; i++){