BandTests
✓ Published0🌍 Public
This example displays the population of the top 10 countries as horizontal bars, with a scaleBand mapping country names on the y-axis and a scaleLinear for population on the x-axis. Using React with D3 v7, it renders SVG rectangles and axes via custom components. The data is loaded asynchronously from a CSV URL using d3.csv, and numeric formatting via d3.format presents tick labels with abbreviations.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities and React to render the data.
MIT Licensed