标签:lan fill on() code function basic asi switch cti
####clusters. options
(function() {
var hsv2rgb = function(a,b,c) {
var d=0,e=0,f=0,g=Math.floor(a*6),h=a*6-g,i=c*(1-b),j=c*(1-h*b),k=c*(1-(1-h)*b);
switch(g%6) {
case 0: d=c,e=k,f=i; break;
case 1: d=j,e=c,f=i; break;
case 2: d=i,e=c,f=k; break;
case 3: d=i,e=j,f=c; break;
case 4: d=k,e=i,f=c; break;
case 5: d=c,e=i,f=j; break;
}
return‘rgb(‘+Math.round(d*255)+‘,‘+Math.round(e*255)+‘,‘+Math.round(f*255)+‘)‘;
},
colorFun = function(args) {
var size = args.element.score;
return hsv2rgb(0.0, Math.min(1, 0.3 + size*0.05), 1.0/2);
},
fillColorFun = function(args) {
var size = args.element.score;
return hsv2rgb(0.0, Math.min(1, 0.3 + size*0.05), Math.max(1.0, 1-size*0.02));
};
return {
colors: {
head: colorFun,
tail: colorFun,
line: colorFun,
text: ‘black‘,
_: fillColorFun
}
};
})()
####loops
{
"opacity": 0.02,
"outbound": {
"show": false
},
"yaxis": {
"log": 10.0
}
}
[{"color": "red"}]
标签:lan fill on() code function basic asi switch cti
原文地址:https://www.cnblogs.com/3Dgenome/p/14314302.html