Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar Chart!

Public visualization

Viewing a saved revision (read-only)

903ab0de5e524d55a22f5acac9c58158

Making a bar Chart!

0 stars0🌍 Public
Ppandeykriti
Last edited Apr 15, 2020
Created on Apr 15, 2020

This example shows a horizontal bar chart of country populations. It uses D3.js v5 to load data from a CSV file and render SVG rectangles, with a linear scale for population values along the x-axis and a band scale for country names on the y-axis. The code demonstrates fundamental D3 DOM manipulation by selecting an SVG element, appending a group for margins, and binding data to rectangles.

AI-generated description

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