Skip to main content
100%

Fork of Simple Bar Chart000000

✓ Published0🌍 Public
Cchilukuritagore1427@gmail.com
Last edited Mar 20, 2024
Created on Mar 20, 2024
Forked from Simple Bar Chart

This example displays a horizontal bar chart of the ten most populous countries for 2019, loaded from a CSV file via d3.csv. It renders the bars as SVG rectangles, positioning them with d3.scaleBand for the categorical country axis and d3.scaleLinear for the population axis. Gridlines and axis ticks are generated manually using d3's scale methods, with values formatted directly from the data. The chart is built using React components that manage state and lifecycle hooks to fetch and process the data before rendering.

AI-generated description

A bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.

Challenge

  • Fork this viz and modify it to show your own data
MIT Licensed

Similar vizzes