Skip to main content
100%

csv fetching csv file and reading columns

✓ Published1🌍 Public
NNita
Last edited May 1, 2021
Created on May 1, 2021
Forked from HTML Starter

This example demonstrates how to fetch a CSV file and read its columns using D3 v6. The visualization shows the structure of hierarchical data by applying the `d3.csv` method to load `data.csv`, which contains child–parent relationships. The code uses `d3.stratify()` to convert the tabular data into a hierarchical root node, with column names dynamically retrieved via the `d.columns` array. The resulting hierarchy is logged to the console but not rendered visually, focusing purely on data preparation and parsing.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes