Skip to main content
100%

CZC Make Bar Chart

✓ Published1🌍 Public
Cchristine
Last edited Sep 25, 2022
Created on Sep 25, 2022

This example renders a horizontal bar chart showing the percentage of the population living in poverty for ten countries. Using D3.js v5, it maps country names to the y-axis with `scaleBand` and poverty percentages to the x-axis with `scaleLinear`. The SVG graphic is built by appending rectangles whose width and y-position are computed from the data. Axes are added with `axisLeft` and `axisBottom`. Data is loaded from a CSV file, and the chart is drawn entirely with SVG elements.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a bar chart based on data This bar chart shows population of and it comes from URL

MIT Licensed

Similar vizzes