Skip to content

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

License

Notifications You must be signed in to change notification settings

53seven/d3-nelson-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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