Skip to main content
100%

d3 data table basics

✓ Published0🌍 Public
Hhortulanus
Last edited Feb 7, 2021
Created on Feb 7, 2021

This example shows a simple SVG-based data table visualization built with D3 and React, where a set of black horizontal lines represent table rows, with a highlighted red row to draw attention. The code uses `d3.select` to grab the SVG element, reads its width and height attributes, and renders the lines as SVG `<path>` elements using `d3.arc`. The stylesheet controls stroke color and width, while a `.highlighted` class turns the selected row red. The visualization demonstrates basic D3 data binding and SVG rendering without any interactive behavior.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes