Skip to main content
100%

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

✓ Published2🌍 Public
SSrilekha24
Last edited Mar 5, 2022
Created on Mar 5, 2022

This example visualizes the top 10 most populous countries in 2019 using a horizontal bar chart, with country names on the y-axis and population values on the x-axis. The chart displays blue gridlines and bars of varying widths to represent each nation’s population. Built with React and D3, the code loads CSV data via `d3.csv`, uses `scaleBand` for the y-axis and `scaleLinear` for the x-axis, and renders SVG rectangles and text elements directly through React components. Axis ticks are generated manually from the scales.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes