Skip to main content
100%

Loading and Parsing PS4 Games Sales Dataset

✓ Published0🌍 Public
RRaul Gamez
Last edited Sep 23, 2021
Created on Sep 3, 2021

This example shows the raw size and structure of a PS4 games sales dataset by displaying three statistics: total file size in kilobytes, number of rows, and number of columns. Using D3 v5’s `d3.csvParse`, it converts fetched CSV text into a parsed data array, then extracts `data.length` for row count and `data.columns.length` for column count. The data is retrieved asynchronously via the Fetch API with `async`/`await`, and the results are rendered as large text inside a `<pre>` element.

AI-generated description

A visualization of the structure of a CSV file.

This program loads and parses a CSV file of a dataset that contains sales of PS4 games (in millions of dollars) around different regions, from multiple genres and publishers: PS4 Games Sales Dataset.

MIT Licensed

Similar vizzes