This is an example of trimming outliers from datasets to allow the plotting of a histogram. The synthetic dataset in random.csv has had some obvious outliers added to it making it difficult to plot using d3's native histogram. Chauvenet's criterion has been used to trim the outliers allowing a 'better' representation of the data. This gist/bl.ock has been created in response to this Stack Overflow question.
To allow implementation of Chauvenet's criterion required use of Jason Davies science library and the histogram is based on Mike Bostocks example here.
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js