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":480.976278351458,"y":-155.525531688911,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"1","name":"rs13112140","itemStyle":null,"symbolSize":20,"x":-256.44694603243,"y":-350.333418272058,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"2","name":"rs2070074","itemStyle":null,"symbolSize":20,"x":111.597349925509,"y":-362.917975283113,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"3","name":"rs273638","itemStyle":null,"symbolSize":20,"x":-412.645700213769,"y":56.6476283171952,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"4","name":"rs34075504","itemStyle":null,"symbolSize":20,"x":-292.369736951753,"y":-174.250435502506,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"5","name":"rs3741240","itemStyle":null,"symbolSize":20,"x":293.802078926628,"y":247.461749296952,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"6","name":"rs409170","itemStyle":null,"symbolSize":20,"x":-377.754558104516,"y":196.729709206514,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"7","name":"rs72716430","itemStyle":null,"symbolSize":20,"x":411.676021862035,"y":-106.026494889808,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"8","name":"rs755917","itemStyle":null,"symbolSize":20,"x":-390.525862124393,"y":277.612662294673,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"9","name":"rs77535797","itemStyle":null,"symbolSize":20,"x":18.0088110097129,"y":126.090845018356,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"10","name":"rs783768","itemStyle":null,"symbolSize":20,"x":398.843487378804,"y":-283.010506386281,"attributes":{"modularity_class":0},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"11","name":"ADAM15","itemStyle":null,"symbolSize":20,"x":181.835436187578,"y":-479.016742003528,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"12","name":"KLB","itemStyle":null,"symbolSize":20,"x":-106.786223206574,"y":66.8234910322694,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"13","name":"CCL27","itemStyle":null,"symbolSize":20,"x":-137.678628782984,"y":302.262936006273,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"14","name":"CD33","itemStyle":null,"symbolSize":20,"x":437.060162574201,"y":-26.8377570621041,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"15","name":"LEPR","itemStyle":null,"symbolSize":20,"x":177.421453867555,"y":-68.7024432573236,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"16","name":"SCGB1A1","itemStyle":null,"symbolSize":20,"x":10.2373561151524,"y":173.138309761487,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"17","name":"DPEP1","itemStyle":null,"symbolSize":20,"x":-250.054867601924,"y":-202.582448809382,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"18","name":"FUT8","itemStyle":null,"symbolSize":20,"x":142.08868085661,"y":-179.968225350306,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"19","name":"CDH17","itemStyle":null,"symbolSize":20,"x":-472.449308571997,"y":-316.320767482809,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"20","name":"AOC1","itemStyle":null,"symbolSize":20,"x":-162.247615151623,"y":-165.069036645702,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"21","name":"PAEP","itemStyle":null,"symbolSize":20,"x":-368.118244802247,"y":-480.956700305907,"attributes":{"modularity_class":1},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"22","name":"Phlegm","itemStyle":null,"symbolSize":15,"x":-445.419834617503,"y":-156.736203074372,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"23","name":"Hemoglobin concentration","itemStyle":null,"symbolSize":15,"x":-216.415004750368,"y":18.2703124791616,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"24","name":"Crohns disease","itemStyle":null,"symbolSize":15,"x":-492.556916119467,"y":172.351654332134,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"25","name":"Hematocrit","itemStyle":null,"symbolSize":15,"x":391.706474521817,"y":-186.129774987884,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"26","name":"Diastolic blood pressure","itemStyle":null,"symbolSize":15,"x":440.130845833135,"y":-30.4661567253706,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"27","name":"Dentures problem","itemStyle":null,"symbolSize":15,"x":110.664327787917,"y":33.2252420486175,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"28","name":"Chin dimples","itemStyle":null,"symbolSize":15,"x":52.029433374572,"y":-388.894145565897,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"29","name":"Mosquito bite size","itemStyle":null,"symbolSize":15,"x":433.447598958973,"y":-133.013806929447,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"30","name":"Alcohol intake frequency","itemStyle":null,"symbolSize":15,"x":-472.356742738048,"y":5.90674742842214,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"31","name":"CTACK levels","itemStyle":null,"symbolSize":15,"x":-417.611170932211,"y":-416.767337573711,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"32","name":"Subarachnoid haemorrhage","itemStyle":null,"symbolSize":15,"x":-141.425001299084,"y":150.615158696058,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"33","name":"Platelet count","itemStyle":null,"symbolSize":15,"x":190.762140383204,"y":-168.831849784601,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"34","name":"White blood cell count","itemStyle":null,"symbolSize":15,"x":-318.247428702788,"y":-488.570026387908,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"35","name":"Monocyte count","itemStyle":null,"symbolSize":15,"x":-36.6334621217286,"y":-358.289627521281,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"36","name":"Arthrosis of first carpometacarpal joint","itemStyle":null,"symbolSize":15,"x":470.881821304744,"y":-465.536984954121,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"37","name":"Plateletcrit","itemStyle":null,"symbolSize":15,"x":-247.885936634838,"y":435.048954297954,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"38","name":"Alzheimers disease","itemStyle":null,"symbolSize":15,"x":119.485559127823,"y":-232.002140971518,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"39","name":"Granulocyte count","itemStyle":null,"symbolSize":15,"x":-141.342651631349,"y":167.615424411266,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"40","name":"BMI","itemStyle":null,"symbolSize":15,"x":130.118890445019,"y":-364.585004036288,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"41","name":"Sum neutrophil eosinophil counts","itemStyle":null,"symbolSize":15,"x":453.581155544469,"y":-154.018244873606,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"42","name":"Myeloid white cell count","itemStyle":null,"symbolSize":15,"x":-118.62432466688,"y":470.82455858398,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"43","name":"Sum basophil neutrophil counts","itemStyle":null,"symbolSize":15,"x":368.675228919837,"y":208.896217273984,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"44","name":"Neutrophil count","itemStyle":null,"symbolSize":15,"x":-495.061784471232,"y":200.012195717138,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"45","name":"Clara cell secretory protein levels","itemStyle":null,"symbolSize":15,"x":-499.691213951261,"y":-270.185475336147,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"46","name":"Chronic obstructive pulmonary disease","itemStyle":null,"symbolSize":15,"x":-137.165692546145,"y":-203.256877120792,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"47","name":"Self-reported fracture fibula","itemStyle":null,"symbolSize":15,"x":-179.953849403725,"y":-191.357032633715,"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":15,"x":263.569761842851,"y":436.501668222291,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"49","name":"Height","itemStyle":null,"symbolSize":15,"x":410.757004413029,"y":321.95821593706,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"50","name":"Self-reported peripheral neuropathy","itemStyle":null,"symbolSize":15,"x":460.666793021119,"y":122.100372461792,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"51","name":"Reticulocyte fraction of red cells","itemStyle":null,"symbolSize":15,"x":-191.501611602785,"y":446.83410441363,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"52","name":"Treatment with blood pressure medication","itemStyle":null,"symbolSize":15,"x":293.40040774979,"y":159.070736756627,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"53","name":"Forced vital capacity","itemStyle":null,"symbolSize":15,"x":324.042291666265,"y":440.772734203057,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"54","name":"Peak expiratory flow","itemStyle":null,"symbolSize":15,"x":305.705773129508,"y":-314.160580691418,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"55","name":"Self-reported hypertension","itemStyle":null,"symbolSize":15,"x":-245.279768165011,"y":489.411656617882,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"56","name":"Reticulocyte count","itemStyle":null,"symbolSize":15,"x":-257.001723104035,"y":-379.883569366941,"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":15,"x":13.7289466657993,"y":-54.6776205218459,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"58","name":"Mean corpuscular volume","itemStyle":null,"symbolSize":15,"x":-297.249355040181,"y":-349.050605644183,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"59","name":"Self-reported osteoarthritis","itemStyle":null,"symbolSize":15,"x":215.347738663056,"y":-136.454290297342,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"60","name":"High blood pressure","itemStyle":null,"symbolSize":15,"x":-171.609603699235,"y":-69.8016963955326,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"61","name":"IgG sialylation","itemStyle":null,"symbolSize":15,"x":327.265022552157,"y":374.310291618242,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"62","name":"IgG digalactosylation","itemStyle":null,"symbolSize":15,"x":-403.892069634653,"y":-263.323938223123,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"63","name":"IgG galactosylation","itemStyle":null,"symbolSize":15,"x":-207.172655088883,"y":-464.073125368887,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"64","name":"IgG monosialylation","itemStyle":null,"symbolSize":15,"x":-471.631527446746,"y":-294.933250176767,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"65","name":"Pulse rate","itemStyle":null,"symbolSize":15,"x":187.491646414457,"y":31.5226122917936,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"66","name":"IgG fucosylation","itemStyle":null,"symbolSize":15,"x":-268.658958689472,"y":-167.893123738983,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"67","name":"Overall health rating","itemStyle":null,"symbolSize":15,"x":467.323957058065,"y":-423.248912537068,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"68","name":"IgG N-glycosylation","itemStyle":null,"symbolSize":15,"x":-71.2815405403585,"y":452.905954200066,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"69","name":"Cutaneous abscess, furuncle and carbuncle","itemStyle":null,"symbolSize":15,"x":249.989647011871,"y":-402.018720006071,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"70","name":"Cholecystitis","itemStyle":null,"symbolSize":15,"x":432.595643001956,"y":44.6145159244523,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"71","name":"Whole body water mass","itemStyle":null,"symbolSize":15,"x":-384.519676245653,"y":-362.413028475155,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"72","name":"Whole body fat-free mass","itemStyle":null,"symbolSize":15,"x":-422.32007348782,"y":-454.346380388309,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"73","name":"Arm predicted mass left","itemStyle":null,"symbolSize":15,"x":-457.559575883182,"y":413.569075951072,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"74","name":"Basal metabolic rate","itemStyle":null,"symbolSize":15,"x":-313.533012792929,"y":-194.887594314148,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"75","name":"Leg predicted mass right","itemStyle":null,"symbolSize":15,"x":-466.580191880372,"y":199.308584638743,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"76","name":"Leg fat-free mass right","itemStyle":null,"symbolSize":15,"x":297.902607614564,"y":-371.717620126948,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"77","name":"Leg predicted mass left","itemStyle":null,"symbolSize":15,"x":-237.777661143809,"y":383.137085870523,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"78","name":"Leg fat-free mass left","itemStyle":null,"symbolSize":15,"x":485.461279429894,"y":458.72231314742,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"79","name":"Arm predicted mass right","itemStyle":null,"symbolSize":15,"x":92.1253975161794,"y":338.186364151892,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"80","name":"Trunk predicted mass","itemStyle":null,"symbolSize":15,"x":496.216487442424,"y":237.483113498283,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"81","name":"Arm fat-free mass right","itemStyle":null,"symbolSize":15,"x":-119.93160385653,"y":474.878800575097,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"82","name":"Impedance of leg right","itemStyle":null,"symbolSize":15,"x":-181.481707262204,"y":49.3692508673562,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"83","name":"Arm fat-free mass left","itemStyle":null,"symbolSize":15,"x":163.024597079806,"y":40.9113910178567,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"84","name":"Arm fat mass right","itemStyle":null,"symbolSize":15,"x":-34.8815082776704,"y":161.739973446954,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"85","name":"Impedance of whole body","itemStyle":null,"symbolSize":15,"x":324.27089399873,"y":392.102563989674,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"86","name":"Impedance of arm right","itemStyle":null,"symbolSize":15,"x":-338.427515824406,"y":-12.6780704959887,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"87","name":"Weight","itemStyle":null,"symbolSize":15,"x":-423.17041217521,"y":-174.621536874971,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"88","name":"Impedance of leg left","itemStyle":null,"symbolSize":15,"x":-275.94953359316,"y":-60.4572607061996,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"89","name":"Arm fat mass left","itemStyle":null,"symbolSize":15,"x":-419.998782172164,"y":-129.742720257408,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"90","name":"Sitting height","itemStyle":null,"symbolSize":15,"x":-54.8109891955967,"y":-321.013585237799,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"91","name":"Body size at age 10","itemStyle":null,"symbolSize":15,"x":328.359924174832,"y":203.489036936486,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"92","name":"Trunk fat-free mass","itemStyle":null,"symbolSize":15,"x":-120.07429223533,"y":-363.584466249238,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"93","name":"Hip circumference","itemStyle":null,"symbolSize":15,"x":117.647217379648,"y":474.686636249794,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"94","name":"Impedance of arm left","itemStyle":null,"symbolSize":15,"x":41.199381276822,"y":-85.2390595878438,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"95","name":"Waist circumference","itemStyle":null,"symbolSize":15,"x":-35.3376285166673,"y":-49.0952600583609,"attributes":{"modularity_class":2},"value":28.685715,"label":{"normal":{"show":false}},"category":0},
{"id":"96","name":"Circulatory and respiratory symptoms","itemStyle":null,"symbolSize":15,"x":-328.226298775818,"y":-253.369031339623,"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)'}}},
{"id":"90","name":null,"source":"10","target":"21","lineStyle":{"normal":{"width":2,"color":'rgb(192,54,54)'}},"emphasis": {"lineStyle": {"width": 10,"color":'rgb(192,54,54)'}}}
]}
;
var categories = [{name: "snp"},{name: "protein"},{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: '关联数',
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%;
}