blog
JavaScript Data Grid Engineering Notes
Notes from building it. What we measured, why the grid is built the way it is, and what it means for the people using it all day.
-
about 5 min
Diverging Chart for Survey Agreement
Bind a diverging chart to a grid of survey answers: one bar per statement, net agreement either side of a centre line. Filter and it redraws.
-
about 5 min
Dumbbell Chart for Pay Gap by Department
Bind a dumbbell chart to a grid of departments. Two dots show median pay for two groups, the bar is the gap, and filtering the rows redraws it.
-
about 4 min
Slope Chart for NPS Before and After
Bind a slope chart to a grid of regional NPS scores: one line per region, last year to this year. Filter the rows and the lines redraw.
-
about 5 min
Bump Chart for Product Rank by Quarter
Bind a bump chart to a grid of products and quarters. Each product is a line that rides its rank, and filtering the rows redraws it.
-
about 5 min
Polar Scatter Chart for Wind Direction and Speed
Bind a polar scatter chart to a grid of wind readings: each dot sits at its bearing and its speed. Filter the rows and the dots redraw.
-
about 5 min
Radial Bar Chart for Goal Completion by Team
Bind a radial bar chart to a grid of teams and completion. Each team is an arc of a track, and filtering the rows redraws the rings.
-
about 5 min
Polar Area Chart for Incidents by Month
Bind a polar area chart to a grid of incidents: twelve months around a circle, each wedge grows in area with its count. Filter the rows and it redraws.
-
about 5 min
Word Cloud of Support Ticket Subjects
Bind a word cloud to a grid of ticket subject words and counts. Filter the rows by queue and the cloud redraws, so the loudest theme shows.
-
about 4 min
Venn Chart for Customers Across Products
Bind a venn chart to a grid of customers: who uses product A, product B, and both. Filter the rows by region or plan and the circles redraw.
-
about 5 min
Pictorial Chart of Fleet by Vehicle Type
Bind a pictorial chart to a grid of vehicle counts, one icon for every ten vehicles. Filter the rows by depot and the icons redraw.
-
about 4 min
Pyramid Chart for a Content Audience
Bind a pyramid chart to a grid of audience counts: reach, engaged, subscribers, customers. Filter the rows by channel to redraw the layers.
-
about 4 min
OHLC Chart for Commodity Prices
Bind an OHLC chart to a grid of daily open, high, low and close prices. Filter the rows by week to redraw the bars and time a purchase.
-
about 5 min
Candlestick Chart of a Daily Price Series
Bind a candlestick chart to a grid of daily prices and read open, high, low and close with volume beneath. Filter the rows and the chart redraws.
-
about 7 min
The subprime crisis rebuilt in a data grid, from 100,000 loans up
Loans, deals, tranches, CDOs and a CDO-squared as derived grids, so one slider reaches every layer. Two live demos and the code that builds them.
-
about 4 min
Funnel Chart for a Sales Pipeline
Bind a funnel chart to a grid of pipeline counts: leads, qualified, proposal, won. Filter the rows by region to redraw the drop at each stage.
-
about 5 min
Gauge Chart of Warehouse Utilisation
Bind a gauge chart to a grid of warehouse zones and read utilisation against its bands. Filter the rows and the needle moves.
-
about 4 min
Radar Chart for Supplier Scorecards
Bind a radar chart to a grid of supplier scores: one spoke per criterion, one shape per supplier. Filter the rows to redraw it.
-
about 5 min
Force Tree Chart of Service Dependencies
Bind a force tree chart to a grid of services and what each depends on, the hub at the centre. Filter the rows and the map redraws.
-
about 4 min
Exact big numbers in a data grid, 1.124
A bigint column keeps every digit through sort, filter, totals and export. Number filters take typed operators, and you choose what Enter does after an edit.
-
about 5 min
Tree Chart of an Approval Hierarchy
Bind a tree chart to a grid of approvers: each node is a person, each line is who they pass up to. Filter the rows to redraw it.
-
about 5 min
Packed Circle Chart of Teams by Headcount
Bind a packed circle chart to a grid of teams: each circle is sized by headcount and packed inside its department. Filter the rows to redraw it.
-
about 5 min
Voronoi Treemap of Market Share by Brand
Bind a Voronoi treemap to a grid of brand shares: organic cells sized by share, one region per category. Filter the rows to redraw the chart.
-
about 5 min
Icicle Chart of Request Time by Span
Bind an icicle chart to a grid of trace spans: width is time spent, depth is nesting, so the slow span stands out. Filter the rows to redraw it.
-
about 5 min
Waffle Chart for Survey Answers
Bind a waffle chart to a grid of survey answers: a hundred squares per question, each one percent of respondents, redrawn when you filter the rows.
-
about 4 min
Treemap of Disk Usage by Folder
Bind a treemap to a grid of folders: tile size is bytes, branches are age bands, so stale space stands out. Filter the rows to redraw the chart.
-
about 4 min
One dashboard across several monitors, 1.120
Pop a chart, board or grid into its own window and every window follows the same feed, filter and selection, with one connection and one login.
-
about 5 min
Sunburst Chart of Spend by Department
Bind a sunburst chart to a grid of spend by department, cost centre and vendor: three rings in one chart, and filtering the rows redraws them.
-
about 5 min
Donut Chart of Budget Used Against Remaining
Bind a donut chart to a grid of budget lines: show spend by category with the remaining budget in the centre, and filter the rows to redraw both.
-
about 4 min
Pie Chart of Revenue Share by Channel
Bind a pie chart to a grid of revenue by channel: show each channel as a share of the quarter, and filter the rows to redraw the slices.
-
about 5 min
Heatmap of Sign-ups by Hour and Weekday
Bind a heatmap to a grid of sign-ups: shade every weekday and hour by volume to time a campaign send, and filter the rows to redraw it.
-
about 4 min
Violin Chart of Salary Bands by Level
Bind a violin chart to a grid of salaries: see the shape of pay at each level, including two bands inside one, and filter the rows to redraw it.
-
about 5 min
Ridgeline Chart of Hourly Demand by Weekday
Bind a ridgeline chart to a grid of store orders: stack each weekday by hour to see how Saturday differs from Tuesday, and filter to redraw it.
-
about 4 min
Box Plot for Delivery Times by Carrier
A JavaScript box plot bound to a data grid, comparing delivery days per carrier with the outliers that drive complaints. Live, with code.
-
about 5 min
Histogram of API Response Times
Bind a histogram to a grid of API response times, one row per request: see the long tail an average hides, and filter by endpoint to redraw it.
-
about 4 min
Pareto Chart for Defect Causes
A JavaScript Pareto chart bound to a data grid, ranking defect causes by count with a cumulative share line. Live, with code.
-
about 5 min
Combo Chart: Orders and Average Order Value
Bind a combo chart to a grid of monthly orders and average order value: bars on one axis, a line on the second. Filter the rows and it redraws.
-
about 5 min
Population Pyramid for Customer Age by Plan
A JavaScript population pyramid bound to a data grid, with customers per age band split men and women back to back, per plan. Live, with code.
-
about 5 min
Bullet Chart for KPI Targets by Region
Bind a bullet chart to a grid of regions with revenue, target and poor, fair, good bands. Filter the rows and it redraws. JavaScript and React code.
-
about 5 min
Floating Bar Chart for Shift Coverage
A JavaScript floating bar chart bound to a data grid, with each shift drawn from start hour to end hour per team, so gaps show. Live, with code.
-
about 5 min
Bubble Chart for Campaign Reach and Cost
Bind a bubble chart to a grid of campaigns by reach, cost and leads. Filter the rows and the bubbles redraw. Paste-ready JavaScript and React.
-
about 3 min
Kanban column controls, header menu and card order: a recruiting pipeline board
A Kanban column takes controls under its header, a header menu, and cards ordered by a rule you write, such as a score. The board still views the same rows as your grid.
-
about 4 min
Scatter Chart for Price Against Conversion
A JavaScript scatter chart bound to a data grid, with list price against conversion rate per SKU and a filter that redraws the points. Live, with code.
-
about 4 min
Waterfall Chart for a Gross to Net Bridge
Bind a waterfall chart to a grid of gross-to-net steps by region. Filter the rows and the bridge redraws. Paste-ready JavaScript and React.
-
about 4 min
Bar Chart for Tickets by Support Queue
A JavaScript bar chart bound to a data grid, with open tickets per support queue split by priority and a filter that redraws the bars. Live, with code.
-
about 3 min
Know when the grid is finished: one attribute for your tests and your page
The grid root now says aria-busy "true" while any work is outstanding and "false" once the last frame has painted, so a test or a script reads one attribute instead of guessing.
-
about 4 min
Area Chart for Stacked Cloud Spend
Bind a stacked area chart to a grid of weekly cloud spend per service. Filter the rows and it redraws. Paste-ready JavaScript and React listings.
-
about 2 min
Filter a database grid by picking values, 1.113
Over a database source, the header filter's Equals picker now lists the values the database holds, capped and searchable, so nobody has to guess a spelling.
-
about 4 min
Line Chart for a Monthly Revenue Trend
A JavaScript line chart bound to a data grid, with twelve months of revenue per product line and a filter that redraws the lines. Live, with code.
-
about 3 min
Pan the map and the grid follows, 1.112
The map view can now write what it shows as the grid's own filter, so the rows, the KPI tiles and the charts follow every pan and zoom in 1.112.
-
about 3 min
Test your grid without depending on its markup
Playwright and Cypress helpers for Lattice Grid read only the grid's public DOM contract, so a markup change no longer breaks your end-to-end tests.
-
about 7 min
This Quarter vs Last Quarter: a Grid That Diffs the Two
Run a period over period comparison in JavaScript: compare this quarter's orders grid against last quarter's, ranked by effect size, with both sides still filterable.
-
about 7 min
JavaScript data grid KPI tiles that filter, 1.111
KPI tiles that filter the grid, ring and gauge tiles, meters, grouped lists and a row cap with "+ n more", all following the grid's filters in 1.111.
-
about 7 min
Trend Figures for Any Series, as Grid Rows
Time series statistics in JavaScript: turn any series, like daily revenue, into trend rows, change, volatility, drawdown, with a derived grid that follows your filter.
-
about 6 min
Correlation Matrix: Which Measures Move Together
Build a correlation matrix in JavaScript straight from your orders grid: one row per measure pair, Pearson's r, live as the orders grid is filtered.
-
about 4 min
Draw and edit on the map, 1.109
The map view now takes shapes of its own and lets people move a grid row by dragging its point, saved through the grid's editing and undo.
-
about 4 min
Context menu, sidebar and toolbar, 1.108
createContextMenu, createSidebar and createToolbar draw the app around your grid on the grid's own themes, with the right-click menu shared by all three.
-
about 8 min
Median, p95 and Spread Per Rep, Not Just the Totals
Median and percentile JavaScript grid: median, p95 and spread per rep, built from your orders grid, so the spread stays live the moment you filter.
-
about 7 min
Data Quality Profile: One Row Per Column, One Line
Data profiling in JavaScript: profile any grid in one line, with count, missing, distinct, min, max, mean, median, quartiles and outliers, following every filter.
-
about 4 min
Customer segmentation in a data grid, 1.106
A cluster column gives every row a segment you can group, filter, colour and chart. Drawers, dialogs and a shared htmx build arrive in the same release.
-
about 5 min
Edit a record and its related rows as one, 1.107
A record editor saves a form and its related rows in one batch. Explain any number, test whether a difference is real, and write xlsx with no library.
-
about 3 min
List view, tree and card view on a data grid, 1.105
A list view, a tree and a card view built on the grid share its data API, selection and keyboard, and now follow your theme. Both releases, live.
-
about 7 min
Totals That Follow However You Group: a Derived Grid
A dynamic group by grid: group orders by rep, region or month, and a derived totals grid follows, with groupBy as the fallback before anyone groups it.
-
about 6 min
Totals for Selected Rows: a Derived Grid, Not a Filter
Build a live totals panel for just the rows a user ticks, with a derived grid whose follow is selected, so the total re-sums every time the selection changes.
-
about 9 min
JavaScript form library for data apps: the Lattice form
One product for the table and the form that edits it. Bind a form to a grid row, validate, and register your own custom controls once to use like built-ins.
-
about 7 min
Revenue by Customer Segment: Join a Grid, Then Group It
Join two tables in a JavaScript grid: bring segment across from a customers grid, group orders by it, and keep the segment totals moving with both tables' filters.
-
about 4 min
Data grid theming: 4 presets, dark mode, 1.103
One token contract now carries four presets and dark mode across the grid, form, Gantt, Kanban, calendar and more, plus four new form controls, all live.
-
about 7 min
Units and Revenue by SKU: Unnest Order Lines
Flatten a nested array into a JavaScript table: unnest each order's line items and total units and revenue by SKU, in a derived grid that follows the orders grid's filters.
-
about 7 min
Loss-Making Orders: an Exceptions Grid, Not an Export
A conditional row filter in a JavaScript grid: a live list of loss-making orders, built from your orders grid with where, updated the moment cost passes amount.
-
about 2 min
Barcode Cells in a Data Grid: Code 128, EAN-13 and Data Matrix From the Cell Value
Barcode cells in a data grid: set a column to the barcode renderer and Code 128, EAN-13 or Data Matrix is drawn as inline SVG from the cell value.
-
about 5 min
JavaScript form library: 5 new controls, 1.101
A date range picker, list box, speed dial, toggle with on and off text, and barcodes with Data Matrix join the form and grid, each with a live example.
-
about 8 min
Overdue Orders: a Derived Grid That Maintains Itself
Build an overdue orders exception report as a derived data grid from your orders grid, filtered with where, so it never goes stale when someone filters the table.
-
about 4 min
Editable data grid in JavaScript: forms and touch
One record editor spread over several layout cells now validates, locks and saves as one form, and the boards, Gantt, calendar and scheduler edit by touch.
-
about 7 min
Top Customers by Revenue: the 80% Cutoff
Pareto analysis in JavaScript: a top-customers grid from your orders grid, kept until the running revenue share crosses 80%, and re-applied whenever the orders are filtered.
-
about 7 min
Top 3 Products Per Region: a Derived Grid with limitPer
Top N per group in JavaScript: the best three products per region from your orders grid, with groupBy and limitPer, so one filter moves both and the ranking never drifts.
-
about 6 min
Sales Leaderboard: Top Five Reps From a Derived Grid
Show the top N rows in a JavaScript grid: a top five sales leaderboard built from your orders grid by rep and revenue, so one filter moves both.
-
about 7 min
Monthly Revenue Trend Grid That Feeds a Line Chart
Group by month in JavaScript with a derived grid: bucket orders, sum revenue and feed a chart from grid data that stays in step once someone filters the table.
-
about 11 min
Chart a Derived Grid: Source and Derived Data, One Chart
Bind a chart to a derived grid and it follows the parent live. Union the source grid with the derived one and a single chart overlays both, on one chart or two axes.
-
about 6 min
Region by Category Revenue Matrix From One Order Grid
A pivot table in JavaScript, built from one order grid: a region by category revenue matrix that groups and sums live, so it never disagrees with the filtered table.
-
about 6 min
Revenue by Region: a Derived Grid, Not a Second Query
Group by region in a JavaScript data grid: a revenue summary table built from your orders grid, so one filter moves both and the numbers never disagree.
-
about 5 min
New shapes, moving pictures and measuring tools for your charts
Seventeen new chart types, charts that play through time, precise measuring and annotation, and labels that finally stay put.
-
about 5 min
We Migrated 166 Grids to Lattice Grid. Here's What Broke.
TOCLOCO moved its own product, DemandFlow, onto Lattice Grid across 166 grids. What it took, what broke in our grid and our own code, and what got better.
-
about 2 min
Lattice Grid 1.83: a data grid that is also a calendar
The same rows a grid holds now show as a calendar too, with drag-to-reschedule write-back, a working week view, and every framework adapter.
-
about 1 min
Lattice Grid 1.82: a grid that survives Back and Forward
On an htmx page, Back and Forward now bring a hydrated grid back live with its sort and filters intact, server-rendered types are respected, and viewers survive a swap.
-
about 4 min
One response for the grid and every dropdown in it
An editable grid needs its rows and the option lists behind its dropdown columns. With the Data Router one response carries both, and each dropdown follows its own route live.
-
about 2 min
Lattice Grid 1.81: presets that match their system's real shape
The four design-system presets now match Material 3, Bootstrap 5, Ant Design 5 and Fluent 2 in shape as well as colour, checked against a real, installed Material UI data grid.
-
about 3 min
Lattice Grid 1.80: design-system presets and a page that pages
Restyle the grid to Material 3, Bootstrap 5, Ant Design 5 or Fluent 2 with one stylesheet, read a live MUI theme straight in, and replace a Material UI data grid in one import.
-
about 2 min
Lattice Grid 1.79: loading rows, grouping on ClickHouse
A grid over a live source now shows its own loading state, groups by any column on ClickHouse and Elasticsearch, and keeps its KPI tiles honest over paged and pivoted data.
-
about 2 min
Lattice Grid 1.78: filter menus and pivots run in the engine
A pushdown grid now opens its filter menus instantly, pivots where the data lives, and lets select-all mean every matching row, not just the ones on screen.
-
about 4 min
The Pushdown Data Grid: One Query, Any Engine
One grid, one query shape, any engine. The pushdown source sends filters, sorts, grouping, pivots and aggregates to the database, and holds only the rows on screen.
-
about 4 min
Lattice Grid 1.77: dashboards from a spec, and Elasticsearch
Build a whole dashboard from one JSON spec, read Elasticsearch and OpenSearch directly, hand-order rows without losing a sort, and compare two extracts with a fix, not a workaround
-
about 4 min
Filter and Map Location Data in a JavaScript Grid
Give a table column a real shape, filter it by box, polygon or distance, draw it on a map, and read it from a GeoParquet file without loading more than the page in view.
-
about 2 min
Lattice Grid 1.74: one dark switch, many values in a cell, deck.gl
One theme switch reaching a whole dashboard, a list column type for many filterable values in one cell, deck.gl as a grid viewer, and volume in the candlestick pane.
-
about 3 min
Lattice Grid 1.76: ClickHouse, MotherDuck and the Leaflet map
A row form that adds a row, dropdowns that follow a live source, ClickHouse and MotherDuck as first-class sources, Leaflet joining deck.gl, and a cleaner annotation rail.
-
about 3 min
Lattice Grid 1.73: shapes in a column, and maps that ask the engine
A geometry column type with four spatial filters, GeoParquet read straight into DuckDB in the browser, a choropleth chart, and maps whose pan and zoom become a filter on the grid.
-
about 4 min
Reading Splunk Live in a Data Grid
Filter, sort and page a live Splunk search from an ordinary data grid. The grid writes the search string, Splunk does the work, and the credential never leaves the browser.
-
about 4 min
Lattice Grid 1.70: a lighter grid, and KPI tiles that know a dead feed
A quarter less to download, KPI tiles that grade freshness as well as value, text-only headings for wallboards, and an API reference with a page per module.
-
about 5 min
Numbers that keep moving after they are announced
Forty-seven FRED economic series with every revision kept. Rewind the whole dashboard to a date, or replay one series exactly as it was first announced against today.
-
about 4 min
An editable grid for your pandas DataFrame
Render a pandas DataFrame as an interactive, editable grid in a Jupyter notebook, then read every edit back in Python with dtypes preserved. The same grid runs in Dash.
-
about 6 min
One live feed, a whole screen of views
One live feed can drive several related grids and a chart at once. A router partitions the stream by a property so each decoupled view shows only its own slice.
-
about 3 min
Draw on the live numbers, not on a screenshot
Present the grid itself in a review and draw straight over it. Ring the line, arrow the outlier, highlight the total, all on real data that never changes underneath.
-
about 3 min
Private by default: the grid never phones home
The grid validates its licence in the browser and sends nothing anywhere. No licence server, no telemetry, and the only calls it makes go to your own data.
-
about 7 min
A grid over DuckDB, in the browser
Point Lattice Grid at a duckdb-wasm connection and it pushes filter, sort and paging down, and gets whole-dataset stats by pulling the set in or pushing the aggregation to DuckDB.
-
about 7 min
The column knows it holds metres
In most grids a unit is a formatter, and a formatter is a lie that shows the moment someone sorts. Lattice Grid makes a quantity a data type, so the column stays a number.
-
about 3 min
The table is the schema
htmx renders the table on the server; Lattice Grid upgrades it into a live grid in place, columns and rows read straight from the markup, and it survives htmx swaps.
-
about 2 min
Swap the import
A compatibility layer gives Lattice Grid the shape of another grid's API, so the constructor, the data and selection namespaces and the events keep working. Swap the import.
-
about 3 min
When the grid became the interface
Grids are sold to developers, so they are built for developers. Why Lattice Grid ships redaction, annotation and presentation tools to every user as standard.
-
about 4 min
A real spreadsheet, written by the grid
Not a CSV renamed to .xlsx. A real workbook with typed cells, a frozen header and your column widths, written in the browser with nothing added to your bundle.
-
about 3 min
Two ways to show a row's detail
A row that expands into a nested grid, or a pane beside the list where nothing moves. They solve different problems, and one config field switches between them.
-
about 4 min
Put the conversation next to the number
The question about a figure lives in a chat thread and the figure lives in a grid. Attach the discussion to the cell and both problems go away.
-
about 4 min
The view someone built on Monday is still there on Friday
Everybody rebuilds the same filter every morning. Name it once, and the queue opens the way each role needs it without anyone negotiating.
-
about 3 min
Hierarchies that survive real data
Every tree demo uses data that is already a tree. Yours will not be. Here is what happens to the orphan, the cycle and the missing level.
-
about 4 min
What did this row say a minute ago?
On a live grid the useful question is not what you did, it is what the data did. Drag the scrubber back and the cells that moved are marked.
-
about 4 min
Pause the feed without losing your place
An analyst reading a row while it moves under them will eventually read the wrong number. One button holds the grid still and counts what it is holding.
-
about 4 min
A grid that keeps up with the feed
Rows arriving faster than anyone can read them, a grid that stays scrollable while they do, and a rate measured in your browser rather than ours.
-
about 3 min
Put the actual numbers on the projector
Screenshots of a grid go stale between the export and the meeting. Present the grid itself, step saved views like slides, and answer the question in the room.
-
about 2 min
Share your screen without sharing the salaries
Every team has a spreadsheet they cannot put on a projector because of one column. Redaction hides the values and keeps the meeting working.
-
about 3 min
What changed since last week
The reconciliation everybody does with two exports and a lookup, done by the grid instead: what moved, what it was before, what arrived and what went.
-
about 4 min
Give the grid the whole window
A panel a few rows tall is a poor place to spend a morning. One control fills the screen with the grid, Escape puts it back, and your work comes with it.
-
about 4 min
Width is the harder problem
Everybody demos a long grid. The one that hurts is the wide one, where the row you are reading loses its name somewhere around column nineteen.
-
about 4 min
A million rows, timed on your machine
Every grid vendor has a benchmark number from a laptop you have never seen. The grid in this post times itself in your browser instead.
-
about 4 min
Types are not labels
In most grids a column type picks an alignment. Here it decides storage, comparison, parsing, formatting and the editor, from one word.
-
about 4 min
A column definition should read like a description
Forty flat properties per column is a config file nobody reads twice. Grouping them by concern, and naming the repeats, makes a column list readable.
-
about 3 min
Get going in two minutes
One script, one stylesheet, a div with a height and a list of columns. Sorting, filtering, resizing and reordering are already there.
-
about 3 min
One licence per domain, not per developer
A grid is installed once and touched by everybody afterwards. Pricing it per developer bills you for a fact about your org chart, not your product.
-
about 4 min
Why we built our own grid
Nobody sets out to write a data grid. We drew the comparison table first, and three shapes of problem kept sending us back to the whiteboard.
-
about 3 min
We built this for ourselves. Now you can buy it.
Lattice Grid ran inside our own platform against live customer data for years before it had a price. Here is what that means for you.