Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar graph using text files

Public visualization

Viewing a saved revision (read-only)

ed7c981d99864a60a6b42d7df2121c1e

Making a bar graph using text files

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

This example demonstrates how to create a bar graph from a CSV file containing country population data. The visualization loads the dataset using the `d3.csv` method in D3 v7, then parses each population value by multiplying it by 1000 to convert from thousands to actual numbers. The code includes a script tag importing D3, and the `index.js` file uses the `select` and `csv` functions from the D3 library. However, the example currently only logs the processed data to the console and does not yet render the bars visually.

AI-generated description