Skip to main content
100%

Loading and parsing data using d3

✓ Published0🌍 Public
Cchalasanigayaetiri@gmail.com
Last edited Mar 7, 2024
Created on Mar 7, 2024
Forked from HTML Starter

This example demonstrates loading a CSV file from a URL and displaying its metadata, including file size in bytes and kilobytes, row count, and column count, within a styled message container. The visualization also includes a static SVG pie chart with two slices (20% and 80%) representing categorical proportions. The code uses D3 v7’s `d3.csv` to fetch and parse the remote CSV, then computes file size using `d3.csvFormat` and `.length`. The SVG chart is hand-coded with `<path>` elements and `<text>` labels, while the page layout relies on basic HTML and CSS for borders and background.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes