Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
KKeerthipriyaBankuru
Last edited Jun 25, 2022
Created on Jun 25, 2022
This horizontal bar chart displays the top 10 most populous countries in 2019, with country names on the y-axis and population counts on the x-axis. The React component uses React hooks (useState, useEffect) to asynchronously load CSV data via d3.csv, then renders SVG marks with d3.scaleBand and d3.scaleLinear for positioning. Gridlines and tick labels are generated manually through array mapping rather than d3's axis components, while blue rectangles represent each country's population value.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed