Skip to main content
100%

Bar Chart using D3.js

✓ Published1🌍 Public
TTajallah-maryam
Last edited Mar 25, 2020
Created on Mar 25, 2020

This visualization presents a simple bar chart of a fixed dataset representing eight numerical values, rendered as SVG rectangles using D3.js v4. The chart does not display axes or labels, relying instead on the raw bar lengths to convey magnitude against an implicit baseline. Using the `d3.select` and `selectAll` APIs, the code generates each bar’s height proportionally to its data value and applies a translate transform to position bars side by side with a fixed padding. The underlying data appears to be an arbitrary array rather than the UN population data referenced in the README, and the chart updates only on load with no interactive elements.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes