Skip to main content
100%

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

✓ Published1🌍 Public
AArv1228
Last edited Mar 6, 2022
Created on Mar 6, 2022

This bar chart displays the top 10 most populated countries in 2019, with country names on the y-axis and population values on the x-axis. The visualization uses React hooks (`useState`, `useEffect`) to load data from a CSV file via `d3.csv`, then renders SVG marks directly through React components. Scaling is handled with `d3.scaleBand` for the categorical axis and `d3.scaleLinear` for the quantitative axis, while grid lines and tick labels are generated manually using `xScale.ticks()`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes