Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3
✓ Published4🌍 Public
This visualization displays the ten most populous countries, using a horizontal bar chart where bar length encodes the 2019 population figures. The chart loads data from a CSV file hosted on GitHub, parsing the population column numerically. The visualization is built with React and D3 version 5, leveraging `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the quantitative x-axis, and SVG `rect` elements for the bars. Axis ticks are generated and rendered manually, with axis lines and labels positioned using SVG transforms. The chart includes a title, "highest population," and focuses on rendering marks and channels through code.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed