Skip to main content
100%

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

✓ Published0🌍 Public
Ppreethamkesa
Last edited Mar 5, 2022
Created on Mar 5, 2022

This fork of ICE-6 demonstrates a bar chart of the top 10 most populous countries, using React hooks and D3 v5 to render SVG marks and channels. The component loads CSV data with `d3.csv`, sorts by 2019 population, and maps values through `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Ticks are generated via `xScale.ticks()`, while React's `useState` and `useEffect` manage the asynchronous data loading and state updates.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes