Lattice Grid Buy a licence

demo D195

Capability against a tolerance

Cp, Cpk, Pp and Ppk from one column declaration

grid.statistics.capability(col, { baseline })

Building…
Loading a live grid…

The configuration

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.13.0/lattice-grid.min.css">
<script src="https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.13.0/lattice-grid.min.js"></script>

<div id="grid" style="height: 440px"></div>
<pre id="out" style="margin-top: 12px"></pre>

<script>
  const grid = LatticeGrid.createGrid(document.getElementById('grid'), {
    rowKey: 'id',
    columns: [
      { field: 'part', title: 'Part', layout: { pin: 'start', width: 110 } },
      // The spec declares the tolerance; capability reads it.
      { field: 'bore', title: 'Bore', type: 'number', total: 'median',
        spec: { lower: 9.5, upper: 10.8, target: 10 } },
    ],
    rows,  // machined bore measurements
  });

  const out = document.getElementById('out');
  out.textContent = JSON.stringify(grid.statistics.capability('bore', { baseline: 20 }), null, 2);
</script>