I'm trying to create a Chord Diagram using D3.js to show the relationship between different clients and suppliers, but I keep getting the following error when running the page, and here's my code:
Uncaught TypeError: d3.queue is not a function at chord.html:47
d3.queue()
.defer(d3.json, 'NewData/Client_Supplier-matrix.json')
.defer(d3.csv, 'NewData/Client_Supplier.csv')
.await(function(err, matrix, mmap) {
if (err) console.log(err);
_.each(mmap, function (d, i) { d.id=i; d.data=d.color })
drawChords(matrix, mmap);
});