Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

790eeacbad2f43bfb04588369d680f7e

Loading and Parsing CSV Data

0 stars0🌍 Public
Mmdfmk
Last edited Feb 29, 2020
Created on Feb 29, 2020

This example loads a CSV file of country populations using `d3.csv`, parses the population values from strings to numbers, and renders a bar chart as SVG. It shows the data after scaling populations by 1000, with countries on the y-axis and population on the x-axis, using `scaleBand` and `scaleLinear`. Axes are added with `axisLeft` and `axisBottom`, and rectangles are drawn for each bar. The code imports specific D3 v5 modules and runs entirely in the browser.

AI-generated description