Skip to main content
100%

Rendering Data with React & D3

✓ Published1🌍 Public
VVipul-Wakodikar
Last edited Dec 6, 2022
Created on Dec 3, 2022

A horizontal bar chart displays the populations of ten countries for 2020, sourced from UN population data loaded via `d3.csv`. The chart renders as SVG using React components, with a `scaleBand` for the y-axis country names and a `scaleLinear` for the x-axis population values. Bars are generated through the `BarRect` component, each filled with random RGB colors, while custom `AxisBottom` and `AxisTop` components draw tick marks and labels, with population formatted in billions using `d3.format`.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes