Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
NNita
Last edited Oct 25, 2018
Created on Aug 29, 2018

The bar chart displays population figures for continents in 2018, with animated horizontal bars that grow to their final widths. The visualization uses `d3.scaleLinear` and `d3.scaleBand` to map population values to bar lengths and continent names to vertical positions, while `d3.transition` animates the bar growth. Numeric labels showing continent names and comma-formatted populations are positioned above each bar using `d3.format`. Data comes from a CSV string parsed with `d3.csvParse`, and the chart is rendered as SVG elements within a fixed 960×500 canvas.

AI-generated description
MIT Licensed

Similar vizzes