Skip to main content
100%

Making a Bar chart

✓ Published1🌍 Public
Nnoelmiranda
Last edited Jul 18, 2019
Created on Jul 18, 2019

This example shows a D3 bar chart that loads population data for ten countries. It uses D3 version 5.9.2 via the `d3` library, reading data from `data.csv` with the `csv` function. The SVG canvas is defined in `index.html` with fixed dimensions, and styling comes from `styles.css`. The current code only logs the parsed data to the console; it does not yet render any bars, leaving the chart visualization incomplete.

AI-generated description

country,population China,1415046 India,1354052 United States,326767 Indonesia,266795 Brazil,210868 Pakistan,200814 Nigeria,195875 Bangladesh,166368 Russia,143965 Mexico,130759

MIT Licensed

Similar vizzes