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

<script>
  import { createGrid } from 'https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.28.0/lattice-grid.esm.min.js';
  import createLatticeAction from 'https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.28.0/modules/svelte.esm.min.js';

  const lattice = createLatticeAction({ createGrid });

  let out = '';

  const config = {
    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
    // onGrid hands over the live grid the moment it is created. capability reads
    // the column's declared spec and returns the figures over the current rows.
    onGrid: (grid) => {
      out = JSON.stringify(grid.statistics.capability('bore', { baseline: 20 }), null, 2);
    },
  };
</script>

<svelte:head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.28.0/lattice-grid.min.css">
</svelte:head>

<div use:lattice={config} style="height: 440px"></div>
<pre style="margin-top: 12px">{out}</pre>