Lattice Grid Buy a licence

demo D195

Capability against a tolerance in Web Component

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 web component version. A lattice-grid custom element renders the grid with no build step, its configuration set as a property, so it works on a page that has no bundler at all.

The configuration

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

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

<lattice-grid row-key="id" style="display: block; height: 440px"></lattice-grid>
<pre id="out" style="margin-top: 12px"></pre>

<script type="module">
  const el = document.querySelector('lattice-grid');
  el.config = {
    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 } },
    ],
  };
  el.rows = rows;  // machined bore measurements

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