🌍 Public
Viewing a saved revision (read-only)
0da71265c9f346ae94fc644ce386c73d
D3 Tutorial part 2
This example demonstrates how to retrieve and summarize a remote CSV file using D3.js. It fetches a comma-separated file containing CSS named colors from a GitHub gist, then displays a text summary of the data’s size in kilobytes, row count, and column count using `d3.csv()` and `d3.csvFormat()`. The result is rendered into an HTML `<pre>` element, with the asynchronous fetch handled via `fetch()` and JavaScript’s `async`/`await` pattern. The page uses the d3.v5 library and relies on basic DOM manipulation.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.