Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

making a bar chart

Public visualization

making a bar chart

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed