Fork of Activity 7
✓ Published0🌍 Public
This bar chart displays the 2020 population of 30 countries, sourced from a CSV file fetched via `d3.csv`. The visualization uses D3 scales (`scaleBand`, `scaleLinear`) and custom React components (`AxisBottom`, `AxisLeft`, `Marks`) to render the SVG. Horizontal bars are drawn as `<rect>` elements, with tooltip text showing formatted values using D3’s `format` function. The chart includes styled gridlines, axis labels, and a "POPULATION-2020" title, all rendered through React’s declarative component structure.
AI-generated descriptionD3 and React Bar Chart
This project displays a bar chart of population data using D3 and React.
Setup
- Install dependencies:
npm install - Start development server:
npm start - Build for production:
npm run build
The chart displays population data for different countries using data from a CSV file.
MIT Licensed