Lattice Grid Buy a licence

demo D195

Capability against a tolerance in ESM

Cp, Cpk, Pp and Ppk from one column declaration

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

This grid computes Cp, Cpk, Pp and Ppk from a single column declaration with its tolerance. It tells a quality engineer whether a process fits within its spec, straight from the readings, without exporting to a separate tool.

Building…
Loading a live grid…

This is the ES module version. The grid is imported straight from a CDN as a module, the same configuration as the vanilla tab without a global script tag, so it drops into any bundler or a bare module script.

The configuration

<link rel="stylesheet" href="https://cdn.latticegrid.dev/lattice-grid@1.108.0/lattice-grid.min.css">

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

<script type="module">
  import { createGrid } from 'https://cdn.latticegrid.dev/lattice-grid@1.108.0/lattice-grid.esm.min.js';

  const grid = 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
  });

  // capability reports Cp, Cpk and the rest against the column's declared spec.
  document.getElementById('out').textContent =
    JSON.stringify(grid.statistics.capability('bore', { baseline: 20 }), null, 2);
</script>