Based on Mike Bostock’s force-directed graph example showing character co-occurence in Les Misérables, this gist shows how to toggle between the animated force-directed graph and a circle formation akin to a chord diagram.