Skip to main content
100%

Fork of Margins And Axis United Nations Bar Char REFACTORED

✓ Published1🌍 Public
LLeandro Da Souza
Last edited Mar 30, 2021
Created on Mar 30, 2021

This example uses a bar chart to visualize the top 10 countries by population from a 2019 United Nations dataset. The code loads the data with `d3.csv` and renders the bars as SVG `rect` elements within a React application, using `d3.scaleBand` and `d3.scaleLinear` for scaling. Custom React components (`AxisBottom`, `AxisLeft`, `Marks`) handle the axes and chart marks, with margins creating space for the categorical y-axis labels.

AI-generated description

using React to render and visualize United Nation Population in 2019

I dont know why this doesn't work

MIT Licensed

Similar vizzes