Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published0🌍 Public
NNandini Maddula
Last edited Mar 20, 2024
Created on Mar 20, 2024
This example visualizes the top 10 most populous countries as a bar chart, with country names on the y-axis and population values on the x-axis. Developed using React and D3 v5, it renders as an SVG via ReactDOM, where D3's `csv` fetches data from a GitHub-hosted file, and `scaleBand` and `scaleLinear` map the categorical and quantitative variables to screen coordinates. The chart draws its own tick marks and labels without relying on D3's `axisLeft` or `axisBottom` helpers, despite importing them.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed