![]() |
VOOZH | about |
The chord.sortChords() function in D3.js is used to set the chord comparator to the specified function or null and returns this chord layout.
Syntax:
chord.sortChords(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.sortChords() function in D3.js
Example 1:
Output:
👁 ImageExample 2: