Home

Awesome

d3-nelson-rules

Greenkeeper badge

build status

d3 utility to apply nelsons rules of process control to a set of data.

Installing

If you use NPM, npm install d3-nelson-rules. Otherwise, download the latest release.

API Reference

var data = [{
  name: 'foo',
  val: 3
} ...];

var nelson = d3.d3_nelson_rules()
  .std(5)
  .mean(1)
  .value(function(d) { return d.val; });

svg.selectAll('rect')
  .data(data)
  .enter()
  ...
  .call(nelson);

License

MIT