🌍 Public
Viewing a saved revision (read-only)
fd7a4f051a2e4982beda588be6473516
Refactored 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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.