Skip to main content
100%

Fork of ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public
Aaashrithd4
Last edited Mar 5, 2022
Created on Mar 5, 2022

This visualization displays a horizontal bar chart of the top 10 most populous countries, with bars representing viewer counts and country names on the y-axis. The code uses React hooks (useState, useEffect) to load data from a CSV file via d3.csv, then renders SVG marks using React components. D3 scales (scaleBand, scaleLinear) position the bars, while axis ticks and labels are generated manually using JavaScript mapping functions. The chart updates dynamically after data loads asynchronously.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes