Lattice Grid Buy a licence

demo D179

Statistics in the totals row

Median, percentiles, deviation and spread, each over the filtered rows

total: 'median' · 'p95' · 'stddev'

Building…
Loading a live grid…

The configuration

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

<script type="module">
  import { defineLatticeGrid } from 'https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.28.0/modules/webcomponent.esm.js';
  defineLatticeGrid();
</script>

<lattice-grid row-key="id" style="display: block; height: 460px"></lattice-grid>

<script type="module">
  const grid = document.querySelector('lattice-grid');
  grid.config = {
    columnDefaults: { filter: true },
    columns: [
      { field: 'reference', title: 'Reference', layout: { pin: 'start', width: 150 } },
      { field: 'desk', title: 'Desk', filter: { type: 'set' } },
      // Each column names its own reduction: median, 95th percentile, deviation.
      { field: 'price', title: 'Price', type: 'number', total: 'median' },
      { field: 'bid', title: 'Bid', type: 'number', total: 'p95' },
      { field: 'volume', title: 'Volume', type: 'number', total: 'iqr' },
      { field: 'notional', title: 'Notional', type: 'number', total: 'sum' },
    ],
  };
  grid.rows = rows;  // trading book records
</script>