Skip to main content
100%

ICE-6: Rendering Marks and Channels with React & D3

✓ Published0🌍 Public

This example visualizes the top 10 food-producing countries using a horizontal bar chart rendered as SVG within a React component. It loads CSV data from a GitHub gist via `d3.csv`, scales the bars with `scaleBand` and `scaleLinear`, and draws tick marks and labels manually using `xScale.ticks()`. The code integrates React hooks (`useState`, `useEffect`) with D3 v5 selection and scale APIs, producing a clean, data-driven layout with orange bars and labeled axes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes