🌍 Public
Viewing a saved revision (read-only)
24f2904eb9b245e28b5e76cef1a41022
Assignment - 1
This example displays the first ten rows of Dallas Police Incident Data in a raw JSON format, loaded from a gist-hosted CSV file using D3’s `csv` method. The page renders the data into two HTML `<pre>` elements, with the first labeled “First 10 rows” and the second showing the stringified JSON. The background is styled with CSS, and an SVG element embeds a background image via a data URI pattern. The code relies on D3 v5’s `select`, `csv`, and `csvFormat` utilities to fetch and display the data.
AI-generated description