Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored Barchart Test

Public visualization

Viewing a saved revision (read-only)

0e314dda1e324b7ebe89633edc177ddd

Refactored Barchart Test

0 stars1🌍 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.