From 999d7b2b95151ef4883be012ebc29ba24925e112 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 31 Mar 2015 18:06:55 +0300 Subject: client/graph_view/concentric: smaller radius for smaller number of nodes --- src/client/view/graph_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index be160d18..044e168b 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -1198,7 +1198,7 @@ function GraphView(spec) { function layout__concentric() { return layout__sync(function () { - var bytype = _.groupBy(this._nodes, 'type'), + var bytype = _.sortBy(_.groupBy(this._nodes, 'type'), "length"), types = _.keys(bytype), i, r, -- cgit v1.3.1