Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
BBaraneedharan N M
Last edited Aug 19, 2020
Created on Aug 12, 2020

This example shows a horizontal bar chart of the top 10 most populous countries, using population data from a CSV file. It uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for positioning, and d3.axisLeft and d3.axisBottom to render axes with custom tick formatting. The bars are drawn as SVG rectangles with a steelblue fill, and the chart includes a title and axis labels.

AI-generated description
MIT Licensed

Similar vizzes