Skip to main content
100%

Making a bar Chart!

✓ Published0🌍 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.

MIT Licensed

Similar vizzes