Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart d3.js

Public visualization

Bar chart d3.js

0 stars0🌍 Public
BBoyan Petrov
Last edited Aug 10, 2020
Created on Aug 10, 2020

This example shows a blank SVG canvas before loading population data from a CSV file. The code uses D3 v5’s `select` and `csv` methods to fetch `data.csv`, converts the `population` values from strings to numbers, and logs the resulting array to the console. No bars are drawn—the visualization only prepares the data and renders an empty 960×500 SVG stage, with styles resetting margins and hiding overflow.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed