Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data - Cars Data

Public visualization

Viewing a saved revision (read-only)

e78ced302f804303942bf1f43223e7f8

Fork of Loading Data - Cars Data

0 stars0🌍 Public
Rrpkupfer@wpi.edu
Last edited Sep 3, 2025
Created on Sep 2, 2025

This example displays raw car data loaded from a CSV file by parsing it with D3’s `csvParse` and rendering it as a JSON string using `JSON.stringify`. The visualization shows the dataset’s structure, including categorical attributes like company and fuel type, alongside quantitative fields such as horsepower, price, and top speed. The code uses `fetch` to retrieve the CSV, then maps each row without cleaning the text-based numeric values, preserving them as strings. D3 selections manage the `<pre>` element that displays the parsed data.

AI-generated description