Skip to main content
100%

Fork of Making A Bar Chart

✓ Published0🌍 Public
JJoshua Arnold
Last edited Jun 25, 2023
Created on Jun 24, 2023
Forked from Making A Bar Chart

This example shows a horizontal bar chart ranking the populations of ten countries, from China and India down to Mexico. It uses D3 v7 with an SVG renderer, loading data from a CSV file via `d3.csv` and scaling values with `d3.scaleLinear` and `d3.scaleBand`. The chart renders axes using `d3.axisLeft` and `d3.axisBottom`. The bars are drawn as `rect` elements with a steelblue fill, and the population values are multiplied by 1000 during preprocessing.

AI-generated description
MIT Licensed

Similar vizzes