Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

834a8ae19e0d46a6b513f60c8e31e59c

Making a Bar Chart

0 stars0🌍 Public
Mmwhiten
Last edited Dec 4, 2020
Created on Dec 4, 2020

This example shows a static bar chart where each bar's height is fixed at 300 pixels, and its width represents the population data from a CSV file. The D3.js v5 code loads the data using `d3.csv`, converts the population values from thousands to raw numbers, and then appends rectangular SVG elements to the canvas. The chart does not scale the bars based on the data values, as the bars are rendered with constant dimensions.

AI-generated description