Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
Ggopiganta
Last edited Mar 6, 2022
Created on Mar 6, 2022

This visualization displays the top 20 countries by population from a COVID-19 dataset, rendered as horizontal bars showing each country's confirmed case count for the date January 28, 2020. The React application uses D3's `scaleBand` and `scaleLinear` to map country names and population values to SVG rectangles, with gridlines and tick labels generated from the scales. The code loads data via `d3.csv` from a GitHub gist and uses React `useState` and `useEffect` hooks to fetch and process the data before rendering the chart.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes