Skip to main content
100%

Fork of Activity 7

✓ Published0🌍 Public
Pperamranji
Last edited Mar 30, 2025
Created on Mar 30, 2025
Forked from Activity 7

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 description

D3 and React Bar Chart

This project displays a bar chart of population data using D3 and React.

Setup

  1. Install dependencies: npm install
  2. Start development server: npm start
  3. Build for production: npm run build

The chart displays population data for different countries using data from a CSV file.

MIT Licensed

Similar vizzes