Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart Tutorial

Public visualization

Viewing a saved revision (read-only)

39e3eb89f26a4164a881386b6c1beccc

Making a Bar Chart Tutorial

0 stars0🌍 Public
Ssohum42
Last edited Jan 1, 2022
Created on Jan 1, 2022

This tutorial demonstrates how to build a simple bar chart from a CSV file containing country population data. The code loads the data with `d3.csv`, converts the population values to numbers, and logs the parsed dataset to the console. The HTML page includes an SVG element and loads D3 v5 from a CDN, though the chart itself is not yet rendered in the provided code. The example focuses on the foundational steps of data loading and transformation using D3's `select` and `csv` methods.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.