Skip to main content
100%

making a bar chart

✓ Published0🌍 Public
Ppgy-iacas
Last edited Mar 12, 2020
Created on Mar 12, 2020
Forked from HTML report

This example shows a horizontal bar chart ranking the populations of nine countries, using a CSV data file as its source. The chart loads the data with `d3.csv` and renders SVG rectangles scaled by `d3.scaleLinear` for population and `d3.scaleBand` for country categories. It adds axes via `d3.axisLeft` and `d3.axisBottom`, with margins and padding configured for clear labels. The visualization demonstrates a straightforward, reusable pattern for building bar charts with D3 v5.

AI-generated description
MIT Licensed

Similar vizzes