Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Dataviz 4 - Parsing CSV data with D3

Public visualization

Dataviz 4 - Parsing CSV data with D3

0 stars0🌍 Public
RRyAlpha
Last edited Nov 20, 2021
Created on Nov 20, 2021

This example demonstrates how to load and parse CSV data using D3, displaying the resulting dataset’s size as a simple text summary. It fetches a remote CSV file of CSS named colors via the `d3.csv()` method, then uses `d3.csvFormat()` to calculate the formatted data size in kilobytes, alongside row and column counts. The output is rendered in a large `<pre>` element. The code also includes commented-out alternatives using `fetch()` and `d3.csvParse()`, highlighting the preferred D3 approach.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed