Skip to main content
100%

tablebuild

✓ Published0🌍 Public
Mmcritchie
Last edited Apr 30, 2023
Created on Apr 30, 2023
Forked from D3 Starter

This example demonstrates how to build an editable HTML table from structured data using D3 v7. It parses a dataset containing visit labels and numeric values, then dynamically generates table headers and rows with D3’s data join methods (`selectAll`, `enter`, `exit`). The table title and header cells are styled with inline D3 style properties. The code explicitly defines visit headers as a Set of objects, and the `tablbuild` function recreates the table each time it is called, using `Object.keys` and `Object.values` to map data into cells.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes