D3-coding-challenge#2:SVG-Rectangle Matrix
✓ Published0🌍 Public
This example displays a 5x5 SVG rectangle matrix built from car data, with a header listing cars priced under $2000 and a list of car makes rendered as list items. The visualization uses D3 v5 selections to append colored rectangles to the SVG canvas, populating the diagonal in blue, the lower triangle in green, and the upper triangle in yellow, while adding boundary and diagonal lines. The code imports car data from a local module and uses `select`, `selectAll`, `data`, `enter`, and `append` from D3 to construct the matrix.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed