Multiple files with ES6 modules
✓ Published1🌍 Public
This example displays a horizontal bar chart of World Bank population data for 31 countries, using the most recent year with available values. The React-based application loads the CSV data through a custom ES6 module that parses and filters the multi-row metadata headers. D3 v5’s `scaleBand` and `scaleLinear` map the country names and population values to SVG rectangles, while `axisLeft` and `axisBottom` render the axes. The chart demonstrates a modular architecture separating data loading, utility functions, and the bar chart component.
AI-generated descriptionES6 modules, React Hooks, D3 CSV parse, Making a bar chart
Data found on World Bank https://data.worldbank.org/
- https://data.worldbank.org/indicator/NY.GDP.MKTP.CD
- https://data.worldbank.org/indicator/SP.POP.TOTL
Found and added some data about the classifications used:
Video tutorials
MIT Licensed