Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Sports Car Prices Dataset

Public visualization

Viewing a saved revision (read-only)

2440d105d7f74b1dbdae0329fdd727e2

Sports Car Prices Dataset

0 stars0๐ŸŒ Public
Jjojongo15342@gmail.com
Last edited Sep 11, 2025
Created on Sep 11, 2025
Forked from Loading Data

This example loads a sports car dataset and displays its raw contents as a formatted JSON preview. The visualization fetches a CSV file containing 1,000 rows of car specifications (make, model, year, engine size, horsepower, torque, 0-60 time, and price) using the Fetch API and parses it with `d3.csvParse`. The parsed data is stored in a state object managed through a custom `setState` function, while D3's `select` and `join` operations render the data in a `<pre>` element. The page updates reactively whenever the state changes, initially showing "LOADING" before the data arrives.

AI-generated description

This dataset describes various sports cars, including their make, model, year, and specs.