Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE-6: Covidcases

Public visualization

Fork of ICE-6: Covidcases

0 stars0🌍 Public
Pprathyusha-reddy-arch
Last edited Mar 23, 2023
Created on Mar 23, 2023

Using a bar chart, this visualization displays the top ten countries by active COVID-19 cases in 2022. The React app loads data from a CSV file containing country populations and case counts, rendering it as an SVG. D3’s `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` are used to position the bars and axes. The chart includes purple gridlines and a title, with data fetched via `d3.csv` and formatted using D3’s `max` and `format` functions. React’s `useState` and `useEffect` hooks manage the asynchronous data loading and rendering process.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed