Skip to main content
100%

Bar chart

✓ Published0🌍 Public
NNikki Masroor
Last edited May 18, 2022
Created on May 18, 2022
Forked from HTML Starter

This example shows a bar chart of COVID-19 cases per one million people by country, fetching live data from the disease.sh API. The visualization uses React for component structure and D3.js utilities, specifically `d3.max` and `d3.scaleLinear`, to map data values to pixel heights within an SVG rendered via React. The `useEffect` hook triggers the chart-building function, while the fetched JSON populates the state that drives the bars.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes