Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Iihatelearning
Last edited Feb 12, 2021
Created on Feb 12, 2021

This example displays a horizontal bar chart ranking the populations of ten countries, with population values scaled to thousands. It uses D3 version 6 APIs such as `d3.select`, `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to render the chart as an SVG. The data is loaded from a CSV file, and the bars are drawn as SVG rectangles with a steelblue fill.

AI-generated description
MIT Licensed

Similar vizzes