Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Aaritra420
Last edited Jun 10, 2021
Created on Jun 7, 2021
Forked from Hello VizHub

This example shows a bar chart of country populations, loading data from a CSV file that lists population figures for ten countries. The chart uses d3.csv to parse the data, then multiplies each population value by 1000 before rendering. The SVG chart is built by appending rectangle elements to a predefined 960×500 SVG container using d3.select and data joins. A linear scale is created with d3.scaleLinear, though the rectangles are currently fixed at 300×300 pixels, meaning the visualization is incomplete and does not yet encode the data values into visual dimensions.

AI-generated description
MIT Licensed

Similar vizzes