🌍 Public
Viewing a saved revision (read-only)
9d57528b18ab4d97b2898508e2d34cb9
Fork of table
This example demonstrates a minimal HTML table visualization where a single hardcoded data object is rendered into a table row. The code uses `d3.select` to target the `tbody` element, then chains `selectAll('tr').data(...).enter().append('tr')` to generate a row, and populates cells with `selectAll('td').data(...).enter().append('td').text(...)`. The sample data provides arrays with undefined fields like `col3` and `colA`, which display as empty cells. The implementation relies on D3 v7’s selection API to bind data directly to DOM elements.
AI-generated descriptionA demonstration of how to start using D3 version 6.