Skip to main content
100%

D3-coding-challenge#2:SVG-Rectangle Matrix

✓ Published0🌍 Public
MMartin MIAO
Last edited Feb 19, 2022
Created on May 25, 2019
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes