Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed