Skip to main content
100%

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

✓ Published9🌍 Public

This example shows the ten most populous countries based on 2019 data, rendered as a horizontal bar chart with steel-blue rectangles. The visualization uses React’s `useState` and `useEffect` hooks to load and filter CSV data via `d3.csv`, then applies `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis. Tick marks and labels are generated manually with SVG elements, while axes are drawn using the D3 `scale` API without helper functions. The chart updates reactively as data loads, with a loading message displayed initially.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes