Skip to main content
100%

Making a bar chart

✓ Published0🌍 Public
RRamandsb
Last edited Aug 23, 2020
Created on Aug 23, 2020
Forked from Making a bar chart

This example demonstrates the initial stage of building a bar chart, where raw CSV data is loaded and logged to the console. The code uses `d3.csv` to fetch population data from `data.csv`, converts the population strings to numbers with `+d.population`, and selects the SVG element via `d3.select`. The chart itself does not yet render bars; instead, it prepares the data pipeline within a React framework, relying on d3.v5 for parsing and the SVG container defined in `index.html`. The visualization shows only the data-loading and transformation step.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes