Skip to main content
100%

Making a bar graph using text file

✓ Published0🌍 Public
Aankxxit
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from HTML Starter

This example shows a bar graph of population by country, reading from a CSV file and rendering the data as SVG rectangles. The visualization uses D3 v7’s `csv` loader to parse `data.csv`, then a `scaleBand` for horizontal positioning and a `scaleLinear` for vertical population values. Blue bars are appended via `selectAll` and `join`, with heights computed from the y-scale. The page is a minimal HTML setup with React noted in metadata, though the code itself uses plain D3 with a container div.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes