console
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
var graph = {"nodes":[{"id":"0","name":"rs11589479","itemStyle":null,"symbolSize":20,"x":423.943560818147,"y":388.953906413677,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"1","name":"rs13112140","itemStyle":null,"symbolSize":20,"x":-67.0589830289564,"y":-459.592430031871,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"2","name":"rs2070074","itemStyle":null,"symbolSize":20,"x":-328.601312125771,"y":491.147993464867,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"3","name":"rs273638","itemStyle":null,"symbolSize":20,"x":-451.17311002266,"y":111.334708144888,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"4","name":"rs34075504","itemStyle":null,"symbolSize":20,"x":-361.729677678039,"y":-462.306468827521,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"5","name":"rs3741240","itemStyle":null,"symbolSize":20,"x":-303.783159458059,"y":217.99590694966,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"6","name":"rs409170","itemStyle":null,"symbolSize":20,"x":-493.516380394816,"y":-491.033075824497,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"7","name":"rs72716430","itemStyle":null,"symbolSize":20,"x":364.942199426073,"y":-370.596505680125,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"8","name":"rs755917","itemStyle":null,"symbolSize":20,"x":-68.0901701976238,"y":398.481886218475,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"9","name":"rs77535797","itemStyle":null,"symbolSize":20,"x":219.858544262587,"y":310.713923941255,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"10","name":"rs783768","itemStyle":null,"symbolSize":20,"x":17.8258997462572,"y":-182.116243756827,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"11","name":"ADAM15","itemStyle":null,"symbolSize":20,"x":-415.573345738009,"y":-353.949151693951,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"12","name":"KLB","itemStyle":null,"symbolSize":20,"x":457.911803516493,"y":-386.136630389232,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"13","name":"CCL27","itemStyle":null,"symbolSize":20,"x":-464.237111880813,"y":-262.972693396231,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"14","name":"CD33","itemStyle":null,"symbolSize":20,"x":92.840523471293,"y":-200.15816176343,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"15","name":"LEPR","itemStyle":null,"symbolSize":20,"x":75.7868428083273,"y":83.9211146264943,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"16","name":"SCGB1A1","itemStyle":null,"symbolSize":20,"x":465.75321541928,"y":-277.590640109199,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"17","name":"DPEP1","itemStyle":null,"symbolSize":20,"x":-437.902852517815,"y":22.9410352776007,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"18","name":"FUT8","itemStyle":null,"symbolSize":20,"x":-225.144120804842,"y":-230.531804500059,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"19","name":"CDH17","itemStyle":null,"symbolSize":20,"x":194.106459889015,"y":215.130372810722,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"20","name":"AOC1","itemStyle":null,"symbolSize":20,"x":248.742970226636,"y":109.976558290858,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"21","name":"PAEP","itemStyle":null,"symbolSize":20,"x":237.196397401104,"y":-165.545389422727,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"22","name":"Phlegm","itemStyle":null,"symbolSize":20,"x":447.862731756407,"y":306.527558907473,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"23","name":"Hemoglobin concentration","itemStyle":null,"symbolSize":20,"x":-309.051093347318,"y":-461.402601555917,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"24","name":"Crohns disease","itemStyle":null,"symbolSize":20,"x":-489.237525093049,"y":-346.597302459858,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"25","name":"Hematocrit","itemStyle":null,"symbolSize":20,"x":411.281369389087,"y":-463.440070276602,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"26","name":"Diastolic blood pressure","itemStyle":null,"symbolSize":20,"x":-203.781797926777,"y":320.819387900465,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"27","name":"Dentures problem","itemStyle":null,"symbolSize":20,"x":-269.06915407755,"y":208.770268733303,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"28","name":"Chin dimples","itemStyle":null,"symbolSize":20,"x":339.205018292527,"y":270.871554516932,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"29","name":"Mosquito bite size","itemStyle":null,"symbolSize":20,"x":167.813212568107,"y":271.301714287993,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"30","name":"Alcohol intake frequency","itemStyle":null,"symbolSize":20,"x":74.9367570770719,"y":-332.809088587725,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"31","name":"CTACK levels","itemStyle":null,"symbolSize":20,"x":233.497971982085,"y":61.9207107562398,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"32","name":"Subarachnoid haemorrhage","itemStyle":null,"symbolSize":20,"x":36.356473564241,"y":236.46542373721,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"33","name":"Platelet count","itemStyle":null,"symbolSize":20,"x":274.307298475256,"y":-209.367206614028,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"34","name":"White blood cell count","itemStyle":null,"symbolSize":20,"x":-204.390155369723,"y":-28.9416323477849,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"35","name":"Monocyte count","itemStyle":null,"symbolSize":20,"x":12.5294902164846,"y":-155.25110112555,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"36","name":"Arthrosis of first carpometacarpal joint","itemStyle":null,"symbolSize":20,"x":-55.451474339531,"y":303.067825417321,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"37","name":"Plateletcrit","itemStyle":null,"symbolSize":20,"x":147.117391851054,"y":135.421515894521,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"38","name":"Alzheimers disease","itemStyle":null,"symbolSize":20,"x":-334.882651478884,"y":187.286874671536,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"39","name":"Granulocyte count","itemStyle":null,"symbolSize":20,"x":-262.905424460762,"y":-440.516382868086,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"40","name":"BMI","itemStyle":null,"symbolSize":20,"x":-445.667420400972,"y":155.571640898124,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"41","name":"Sum neutrophil eosinophil counts","itemStyle":null,"symbolSize":20,"x":477.735515022557,"y":33.7838590855414,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"42","name":"Myeloid white cell count","itemStyle":null,"symbolSize":20,"x":115.672989849585,"y":378.278782360791,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"43","name":"Sum basophil neutrophil counts","itemStyle":null,"symbolSize":20,"x":-478.985819933657,"y":336.202068265807,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"44","name":"Neutrophil count","itemStyle":null,"symbolSize":20,"x":-214.227872200857,"y":-230.023538213385,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"45","name":"Clara cell secretory protein levels","itemStyle":null,"symbolSize":20,"x":122.566963207138,"y":135.639524961499,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"46","name":"Chronic obstructive pulmonary disease","itemStyle":null,"symbolSize":20,"x":-404.508143589881,"y":-67.7486690241429,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"47","name":"Self-reported fracture fibula","itemStyle":null,"symbolSize":20,"x":205.052152646081,"y":-343.673462762537,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"48","name":"Comparative height size at age 10","itemStyle":null,"symbolSize":20,"x":199.251968576243,"y":-114.131730014832,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"49","name":"Height","itemStyle":null,"symbolSize":20,"x":-361.471490787885,"y":-459.388821998566,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"50","name":"Self-reported peripheral neuropathy","itemStyle":null,"symbolSize":20,"x":352.839191577572,"y":-103.334945200273,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"51","name":"Reticulocyte fraction of red cells","itemStyle":null,"symbolSize":20,"x":137.267135492346,"y":-438.384178030655,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"52","name":"Treatment with blood pressure medication","itemStyle":null,"symbolSize":20,"x":365.09303932586,"y":146.712349736223,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"53","name":"Forced vital capacity","itemStyle":null,"symbolSize":20,"x":64.9917113937283,"y":-11.415939195082,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"54","name":"Peak expiratory flow","itemStyle":null,"symbolSize":20,"x":251.462392155801,"y":-169.962946462298,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"55","name":"Self-reported hypertension","itemStyle":null,"symbolSize":20,"x":-167.881255660199,"y":-383.206915982499,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"56","name":"Reticulocyte count","itemStyle":null,"symbolSize":20,"x":464.846353706967,"y":342.901664554258,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"57","name":"Forced expiratory volume in 1-second","itemStyle":null,"symbolSize":20,"x":-411.660388438236,"y":72.8255477552524,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"58","name":"Mean corpuscular volume","itemStyle":null,"symbolSize":20,"x":368.908953124196,"y":11.9708975597126,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"59","name":"Self-reported osteoarthritis","itemStyle":null,"symbolSize":20,"x":328.67323600812,"y":377.582261495815,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"60","name":"High blood pressure","itemStyle":null,"symbolSize":20,"x":98.7612563705482,"y":-198.723935660863,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"61","name":"IgG sialylation","itemStyle":null,"symbolSize":20,"x":-284.522051320397,"y":170.405905841778,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"62","name":"IgG digalactosylation","itemStyle":null,"symbolSize":20,"x":-408.035918137202,"y":-74.1419418766636,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"63","name":"IgG galactosylation","itemStyle":null,"symbolSize":20,"x":201.39013832642,"y":459.625165971943,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"64","name":"IgG monosialylation","itemStyle":null,"symbolSize":20,"x":-55.9963553418954,"y":-231.111098185146,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"65","name":"Pulse rate","itemStyle":null,"symbolSize":20,"x":-9.07080874562939,"y":331.661830041867,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"66","name":"IgG fucosylation","itemStyle":null,"symbolSize":20,"x":312.12979816915,"y":97.5534105497869,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"67","name":"Overall health rating","itemStyle":null,"symbolSize":20,"x":-289.479458025579,"y":10.1827947759397,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"68","name":"IgG N-glycosylation","itemStyle":null,"symbolSize":20,"x":-272.772743174242,"y":420.296693811695,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"69","name":"Cutaneous abscess, furuncle and carbuncle","itemStyle":null,"symbolSize":20,"x":184.621470743723,"y":-140.912814210412,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"70","name":"Cholecystitis","itemStyle":null,"symbolSize":20,"x":285.422966047407,"y":-424.540465517397,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"71","name":"Whole body water mass","itemStyle":null,"symbolSize":20,"x":-326.041349470135,"y":361.121401921289,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"72","name":"Whole body fat-free mass","itemStyle":null,"symbolSize":20,"x":21.2766638756784,"y":-284.687444037205,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"73","name":"Arm predicted mass left","itemStyle":null,"symbolSize":20,"x":364.313002974525,"y":24.0653345995678,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"74","name":"Basal metabolic rate","itemStyle":null,"symbolSize":20,"x":272.035310321666,"y":-94.3465329668805,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"75","name":"Leg predicted mass right","itemStyle":null,"symbolSize":20,"x":212.896224646823,"y":190.197745304139,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"76","name":"Leg fat-free mass right","itemStyle":null,"symbolSize":20,"x":174.055993621679,"y":101.110088126288,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"77","name":"Leg predicted mass left","itemStyle":null,"symbolSize":20,"x":18.5498684691627,"y":-116.637990174279,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"78","name":"Leg fat-free mass left","itemStyle":null,"symbolSize":20,"x":475.584935133828,"y":-379.014924647763,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"79","name":"Arm predicted mass right","itemStyle":null,"symbolSize":20,"x":-348.461383969195,"y":491.972965099432,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"80","name":"Trunk predicted mass","itemStyle":null,"symbolSize":20,"x":492.475712195173,"y":-221.204865255421,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"81","name":"Arm fat-free mass right","itemStyle":null,"symbolSize":20,"x":-160.628191107264,"y":-381.132423502191,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"82","name":"Impedance of leg right","itemStyle":null,"symbolSize":20,"x":-25.2298611222097,"y":450.260907236544,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"83","name":"Arm fat-free mass left","itemStyle":null,"symbolSize":20,"x":181.921958123016,"y":322.155097828312,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"84","name":"Arm fat mass right","itemStyle":null,"symbolSize":20,"x":-92.6272214204139,"y":-458.054668376069,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"85","name":"Impedance of whole body","itemStyle":null,"symbolSize":20,"x":-280.481967095532,"y":404.638958799684,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"86","name":"Impedance of arm right","itemStyle":null,"symbolSize":20,"x":178.472449673643,"y":30.4236974351739,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"87","name":"Weight","itemStyle":null,"symbolSize":20,"x":-111.597569706401,"y":488.183295670696,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"88","name":"Impedance of leg left","itemStyle":null,"symbolSize":20,"x":-354.839791105678,"y":30.0225794779429,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"89","name":"Arm fat mass left","itemStyle":null,"symbolSize":20,"x":-190.548389347807,"y":-38.4259182102032,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"90","name":"Sitting height","itemStyle":null,"symbolSize":20,"x":91.9546510187081,"y":-7.41478209279745,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"91","name":"Body size at age 10","itemStyle":null,"symbolSize":20,"x":31.7402381526761,"y":-256.253954154995,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"92","name":"Trunk fat-free mass","itemStyle":null,"symbolSize":20,"x":107.128668163726,"y":-230.265762804478,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"93","name":"Hip circumference","itemStyle":null,"symbolSize":20,"x":-150.248031726186,"y":157.048326052671,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"94","name":"Impedance of arm left","itemStyle":null,"symbolSize":20,"x":-156.080503252829,"y":311.736779547327,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"95","name":"Waist circumference","itemStyle":null,"symbolSize":20,"x":-300.192700039663,"y":156.355846666589,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"96","name":"Circulatory and respiratory symptoms","itemStyle":null,"symbolSize":20,"x":51.0202634897752,"y":427.624075729922,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
],
"links":[{"id":"0","name":null,"source":"0","target":"11","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"1","name":null,"source":"1","target":"12","lineStyle":{"normal":{"width":2,"color":'rgb(192, 54, 54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192, 54, 54)'}}},
{"id":"2","name":null,"source":"2","target":"13","lineStyle":{"normal":{"width":2,"color":'rgb(192, 54, 54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192, 54, 54)'}}},
{"id":"3","name":null,"source":"3","target":"14","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"4","name":null,"source":"3","target":"14","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"5","name":null,"source":"4","target":"15","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"6","name":null,"source":"5","target":"16","lineStyle":{"normal":{"width":2,"color":'rgb(192, 54, 54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192, 54, 54)'}}},
{"id":"7","name":null,"source":"6","target":"17","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"8","name":null,"source":"7","target":"18","lineStyle":{"normal":{"width":2,"color":'rgb(192, 54, 54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192, 54, 54)'}}},
{"id":"9","name":null,"source":"8","target":"19","lineStyle":{"normal":{"width":2,"color":'rgb(192, 54, 54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192, 54, 54)'}}},
{"id":"10","name":null,"source":"9","target":"20","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"11","name":null,"source":"11","target":"22","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"12","name":null,"source":"11","target":"24","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"13","name":null,"source":"11","target":"25","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"14","name":null,"source":"11","target":"26","lineStyle":{"normal":{"width":2,"color":'rgb(192, 54, 54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192, 54, 54)'}}},
{"id":"15","name":null,"source":"11","target":"27","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"16","name":null,"source":"11","target":"28","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"17","name":null,"source":"11","target":"29","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"18","name":null,"source":"12","target":"30","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"19","name":null,"source":"13","target":"31","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"20","name":null,"source":"13","target":"32","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"21","name":null,"source":"14","target":"33","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"22","name":null,"source":"14","target":"34","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"23","name":null,"source":"14","target":"35","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"24","name":null,"source":"14","target":"36","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"25","name":null,"source":"14","target":"37","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"26","name":null,"source":"14","target":"38","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"27","name":null,"source":"15","target":"39","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"28","name":null,"source":"15","target":"40","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"29","name":null,"source":"15","target":"41","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"30","name":null,"source":"15","target":"34","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"31","name":null,"source":"15","target":"42","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"32","name":null,"source":"15","target":"43","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"33","name":null,"source":"15","target":"44","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"34","name":null,"source":"16","target":"45","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"35","name":null,"source":"16","target":"46","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"36","name":null,"source":"16","target":"47","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"37","name":null,"source":"17","target":"48","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"38","name":null,"source":"17","target":"49","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"39","name":null,"source":"17","target":"50","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"40","name":null,"source":"17","target":"26","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"41","name":null,"source":"17","target":"51","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"42","name":null,"source":"17","target":"52","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"43","name":null,"source":"17","target":"53","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"44","name":null,"source":"17","target":"54","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"45","name":null,"source":"17","target":"55","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"46","name":null,"source":"17","target":"56","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"47","name":null,"source":"17","target":"57","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"48","name":null,"source":"17","target":"58","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"49","name":null,"source":"17","target":"59","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"50","name":null,"source":"17","target":"60","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"51","name":null,"source":"18","target":"61","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"52","name":null,"source":"18","target":"62","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"53","name":null,"source":"18","target":"63","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"54","name":null,"source":"18","target":"64","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"55","name":null,"source":"18","target":"65","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"56","name":null,"source":"18","target":"37","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"57","name":null,"source":"18","target":"66","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"58","name":null,"source":"18","target":"67","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"59","name":null,"source":"18","target":"68","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"60","name":null,"source":"19","target":"69","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"61","name":null,"source":"19","target":"70","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"62","name":null,"source":"20","target":"71","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"63","name":null,"source":"20","target":"72","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"64","name":null,"source":"20","target":"73","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"65","name":null,"source":"20","target":"74","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"66","name":null,"source":"20","target":"75","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"67","name":null,"source":"20","target":"76","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"68","name":null,"source":"20","target":"77","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"69","name":null,"source":"20","target":"78","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"70","name":null,"source":"20","target":"79","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"71","name":null,"source":"20","target":"80","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"72","name":null,"source":"20","target":"81","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"73","name":null,"source":"20","target":"82","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"74","name":null,"source":"20","target":"83","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"75","name":null,"source":"20","target":"84","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"76","name":null,"source":"20","target":"85","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"77","name":null,"source":"20","target":"86","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"78","name":null,"source":"20","target":"87","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"79","name":null,"source":"20","target":"88","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"80","name":null,"source":"20","target":"89","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"81","name":null,"source":"20","target":"90","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"82","name":null,"source":"20","target":"91","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"83","name":null,"source":"20","target":"40","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"84","name":null,"source":"20","target":"92","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"85","name":null,"source":"20","target":"49","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"86","name":null,"source":"20","target":"93","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"87","name":null,"source":"20","target":"94","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}},
{"id":"88","name":null,"source":"20","target":"95","lineStyle":{"normal":{"width":2,"color":'rgb(65, 35, 201)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(65, 35, 201)'}}},
{"id":"89","name":null,"source":"21","target":"96","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}}]}
;
var categories = [{name: "snp"},{name: "exposure"},{name: "trait"}]
graph.nodes.forEach(function (node) {
node.itemStyle = null;
node.value = node.symbolSize;
node.symbolSize /= 1.5;
node.label = {
normal: {
show: node.symbolSize > 10
}
};
node.category = node.attributes.modularity_class;
});
option = {
title: {
text: '毕业设计',
subtext: 'Default layout',
top: 'bottom',
left: 'right'
},
tooltip: {},
legend: [{
// selectedMode: 'single',
data: categories.map(function (a) {
return a.name;
})
}],
animationDuration: 1500,
animationEasingUpdate: 'quinticInOut',
series : [
{
name: 'GWAS',
type: 'graph',
layout: 'none',
data: graph.nodes,
links: graph.links,
categories: categories,
roam: true,
focusNodeAdjacency: true,
itemStyle: {
normal: {
borderColor: '#fff',
borderWidth: 1,
shadowBlur: 10,
shadowColor: 'rgba(0, 0, 0, 0.3)'
}
},
label: {
position: 'right',
formatter: '{b}'
},
lineStyle: {
color: 'source',
curveness: 0.3
},
emphasis: {
lineStyle: {
width: 10
}
}
}
]
};
myChart.setOption(option);
<div id="container" style="height: 100%"></div>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
<script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
body,html {
height: 100%;
}