Fork of Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
SSanchay
Last edited Mar 1, 2022
Created on Mar 1, 2022
This example visualizes the top 10 most populous countries using a horizontal bar chart. It renders SVG marks with React, using D3’s `scaleBand` and `scaleLinear` to map country names and population values to positions, with axes and tick labels drawn manually. Data is loaded from a CSV via `csv` and parsed with a row function. The code uses React hooks (`useState`, `useEffect`) and D3 utilities like `max` and `format`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed