Skip to content

Commit

Permalink
Fix chordDirected.sortSubgroups, again.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Nov 24, 2019
1 parent b78a347 commit 046433d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chord.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function chord(directed) {

// Sort.
if (sortGroups) groupIndex.sort((a, b) => sortGroups(groupSums[a], groupSums[b]));
if (sortSubgroups) subgroupIndex.forEach((d, i) => d.sort((a, b) => sortSubgroups(matrix[i][a] + directed * matrix[a][i], matrix[i][b] + directed * matrix[b][i])));
if (sortSubgroups) subgroupIndex.forEach((d, i) => d.sort((a, b) => sortSubgroups(matrix[i][a] - directed * matrix[a][i], matrix[i][b] - directed * matrix[b][i])));

// Convert the sum to scaling factor for [0, 2pi].
// TODO Allow start and end angle to be specified?
Expand Down

0 comments on commit 046433d

Please sign in to comment.