Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
KKenneth Silvere
Last edited Jun 19, 2021
Created on Jun 19, 2021

This example demonstrates the loading and parsing of a CSV file containing CSS Named Colors. It displays a summary message showing the data size in kilobytes, the number of rows, and the number of columns. The visualization uses D3 v5’s `d3.csv` method to fetch the remote CSV data and handle it as a Promise. The code then uses `d3.csvFormat` to calculate the data size and accesses the `data.columns` property to determine the column count, rendering the final text inside an HTML `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes