All examples By author By category About

NPashaP

Chord - sort

viz.ch().sort

This method is used to set a sort order for the groups.

The diagram on the left uses the default sort function which is d3.ascending and the diagram on the right uses a custom sort function.

Part of a series of examples on Chord diagram using VizJS