Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published1🌍 Public
99176371431
Last edited Mar 9, 2023
Created on Mar 9, 2023
This example shows the top 20 countries by total deaths from a CSV dataset, rendered as a horizontal bar chart using React and D3. The code leverages `d3.csv` to load data, `d3.scaleBand` for the categorical y-axis, and `d3.scaleLinear` for the quantitative x-axis. SVG rectangles represent each bar, with axes drawn manually via `d3.axisBottom` and tick marks, all positioned using React's declarative JSX markup within an SVG container.
AI-generated descriptionReact Starter code.
MIT Licensed