Change and transition dataset in chord diagram with D3
I'm working on a chord diagram using D3. I am trying to make it so that when a user clicks on a link the dataset will change to another predefined dataset. I've looked at both http://exposedata.com/tutorial/chord/latest.html and http://fleetinbeing.net/d3e/chord.html , and have tried to use some elements in there to get it to work. Here is the JavaScript to create the "default" diagram: var dataset = "data/all_trips.json"; var width = 650, height = 600, outerRadius = Math.min(width, height) / 2 - 25, innerRadius = outerRadius - 18; var formatPercent = d3.format("%"); var arc = d3.svg.arc()