aboutsummaryrefslogtreecommitdiff
path: root/templates/cytoscape.html
diff options
context:
space:
mode:
authorHao Chen2019-05-09 16:51:45 -0500
committerHao Chen2019-05-09 16:51:45 -0500
commitebdf692ea30b649b6023151f9364f8c71717fadc (patch)
tree4cfa1db5f7adb0fe0dd2f25581244511f99180d2 /templates/cytoscape.html
parent476c804c3d6350ff99075713308995add9837cca (diff)
downloadgenecup-ebdf692ea30b649b6023151f9364f8c71717fadc.tar.gz
layout algo
Diffstat (limited to 'templates/cytoscape.html')
-rw-r--r--templates/cytoscape.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/templates/cytoscape.html b/templates/cytoscape.html
index c0c6bf6..05fc045 100644
--- a/templates/cytoscape.html
+++ b/templates/cytoscape.html
@@ -15,13 +15,14 @@
'text-halign': 'center',
'background-color': 'data(nodecolor)',
'font-weight': 'data(fontweight)',
- 'font-size': '20%'
+ 'font-size': '9%'
}
},
{ selector: 'edge',
css: {
'content': 'data(sentCnt)',
'curve-style': 'bezier',
+ 'line-cap': 'round',
'opacity': 'mapData(sentCnt, 1, 50, 0.2, 0.3)',
}
},
@@ -47,8 +48,16 @@
],
elements:[ {{ elements | safe }} ],
layout: {
- name: 'circle'
+ name: 'concentric',
+ concentric: function( node ){
+ return node.degree();
+ },
+ levelWidth: function( nodes ){
+ return 7;
+ }
}
+
+
});
cy.on('tap', 'edge', function(){