diff options
| author | Alon Levy <alon@pobox.com> | 2015-03-31 18:06:55 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-02 00:33:37 +0300 |
| commit | 999d7b2b95151ef4883be012ebc29ba24925e112 (patch) | |
| tree | 6092483e3f197d105671d26f7c1840d0c471eab0 /src/client/view | |
| parent | 960732fcca3dba12cf934c4d1edc2bba7f230fab (diff) | |
client/graph_view/concentric: smaller radius for smaller number of nodes
Diffstat (limited to 'src/client/view')
| -rw-r--r-- | src/client/view/graph_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
