Skip to main content
100%

População Bar Chart 02

✓ Published1🌍 Public
AAlan Santos
Last edited Jun 2, 2022
Created on Jun 2, 2022

This example displays a horizontal bar chart of the ten most populous countries in 2019, based on United Nations population data loaded from a CSV file. It initially renders a loading state while fetching data, then uses D3’s `scaleBand` and `scaleLinear` to map country names and population values to positions and bar widths. The React component manages state and renders SVG elements, including grid lines and axis labels, with D3 v7 functions like `max` and `ticks` to compute scales and tick values. The chart updates directly from the fetched dataset, showing population counts along the horizontal axis.

AI-generated description

Programa que mostra os 10 países mais populosos atraves do grafico de barras e axes

Dados:Perpectiva da Nações Unidas da População 2019

MIT Licensed

Similar vizzes