Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing NASCAR Data

Public visualization

Viewing a saved revision (read-only)

48d829dd85c04a978910193967387468

Loading and Parsing NASCAR Data

0 stars0🌍 Public
RRobert Johnson
Last edited Sep 27, 2021
Created on Sep 5, 2021

This example demonstrates how to load and parse NASCAR race data from a CSV file using the D3.js library. It displays the dataset’s size in kilobytes, the number of rows, and the number of columns in large text on a web page. The code uses `d3.csv` to fetch the remote CSV file, `d3.csvFormat` to calculate the data size, and accesses the dataset’s `length` and `columns` properties. The result is presented in a `<pre>` element styled with a large font size.

AI-generated description

A program that loads and parses a datset containing information on every NASCAR race held between 1975 and 2003.