Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making a bar graph using text file

Public visualization

Viewing a saved revision (read-only)

6aa84003ea9746238bb1496d65c5672a

making a bar graph using text file

0 stars0🌍 Public
Cclass-sikh
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from HTML Starter

This example shows a bar graph of country populations from a CSV file, displaying each nation’s population as a blue vertical bar. It reads the data using `d3.csv` from the D3 v7 library, then renders the SVG chart with `d3.select`, `d3.scaleBand` for the x-axis, and `d3.scaleLinear` for the y-axis, with bars drawn via `svg.append('g').selectAll('rect').data(data).join('rect')`.

AI-generated description