Skip to main content
100%

Bar with axis

✓ Published1🌍 Public
EEugenio2192
Last edited Jul 11, 2021
Created on Jul 11, 2021
Forked from Bar

This example displays the top 10 most populous countries in 2020 as a horizontal bar chart, with country names on the y-axis and population values on the x-axis. Using React hooks to manage data loading, it fetches CSV data via D3’s `csv` utility and renders SVG bars with `rect` elements. D3’s `scaleBand` and `scaleLinear` position the bars, while custom tick marks and labels are generated from `xScale.ticks()` and the y-scale domain, all within a React component tree.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes