D3 V4 Properly placing a bubble in the US Map
问题 I am creating a US Map and I have a series of ACTUAL coordinates of some places in US. I would like to put a point or bubble on the right spot in the map. How do I scale/translate these? This is what I get: With what I have tried: function USAPlot(divid, data) { var margin = { top: 20, right: 20, bottom: 30, left: 50 }, width = 1040 - margin.left - margin.right, height = 700 - margin.top - margin.bottom; // formatting the data data.forEach(function (d) { d.loc = d.location; d.count = d.count;