Skip to main content
100%

Refactored Barchart Test

✓ Published1🌍 Public
Ddleoenri
Last edited Apr 21, 2022
Created on Apr 21, 2022
Forked from Barchart Test

This example shows a horizontal bar chart comparing mobile app downloads across devices, using a filtered dataset of two rows extracted from a CSV file. The visualization renders SVG rectangles scaled by download counts, with axis labels generated through React components. The code builds the chart using D3 v7’s `scaleBand` and `scaleLinear` for positioning, while React manages component state via hooks like `useState` and `useEffect` to load and slice the data asynchronously.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes