Skip to main content
100%

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

✓ Published3🌍 Public
AAnjan Shrestha
Last edited Mar 22, 2022
Created on Mar 7, 2022

A horizontal bar chart ranks the ten wealthiest individuals by net worth in billions of dollars, with bars extending rightward from category labels. The visualization is built with React and D3 v5, using `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis, rendering SVG rectangles. Data is loaded asynchronously from a CSV file via `d3.csv`, and axes are drawn with `d3.axisBottom` and manual text ticks. The chart updates reactively once the data is fetched, showing the top ten entries sorted by descending wealth.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes