mbostock/d3 — pull request #1709 by tcp (2014-01-24 21:39:35+00:00)
Title: d3.weightedMean

Saw the request for this feature, which I have used many times in the past, and decided to do a PR. Also added some tests (blatantly using mean-test.js as a sketch).