![]() |
VOOZH | about |
The chord.sortSubgroups() function in D3.js is used to set the subgroup comparator to the specified function or null and returns this chord layout.
Syntax:
chord.sortSubgroups([compare]);
Parameters: This function accepts a single parameter as mentioned above and described below:
Return Value: This function returns the chord layout.
Below programs illustrate the chord.sortSubgroups() function in D3.js
Example 1:
Output:
👁 ImageExample 2: