aboutsummaryrefslogtreecommitdiffstats
path: root/html/js/git-deps-graph.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/js/git-deps-graph.js')
-rw-r--r--html/js/git-deps-graph.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js
index 16b6a0f..3ca4856 100644
--- a/html/js/git-deps-graph.js
+++ b/html/js/git-deps-graph.js
@@ -119,7 +119,7 @@ function build_constraints() {
function build_constraint(parent_sha1) {
constraint = {
- axis: 'x',
+ axis: 'y',
type: 'alignment',
offsets: [],
parent: parent_sha1
@@ -179,6 +179,7 @@ function init_cola() {
d3cola
.nodes(nodes)
.links(links)
+ .constraints(constraints)
.flowLayout("y", 150)
.symmetricDiffLinkLengths(30);
//.jaccardLinkLengths(100);