🌍 Public
Viewing a saved revision (read-only)
b6fb822f185043acb0f9ae25cca2ad5f
d3 data table basics
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 descriptionReact Starter code.