Skip to main content
100%

Let's make a bar chart

✓ Published0🌍 Public
Eecw99
Last edited Mar 22, 2020
Created on Mar 22, 2020

This example shows a horizontal bar chart of population estimates for eight countries, scaled from a CSV file. It uses D3 v5 with SVG rendering, employing `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis categories, and `d3.axisLeft`/`d3.axisBottom` to draw the ticks. The population values are multiplied by 1,000 in the data loading step, and bars are appended as SVG `<rect>` elements with a fixed steelblue fill.

AI-generated description
MIT Licensed

Similar vizzes