Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar-Chart

Public visualization

Bar-Chart

0 stars0🌍 Public
SSree Yuktha Sunkara
Last edited Apr 25, 2024
Created on Apr 25, 2024

This bar chart visualizes the top 10 most populous countries as of January 1st, 2024, using horizontal bars to compare population sizes. It loads data from an ICRISAT CSV file and processes it with D3.js, mapping state names to rice yield values. The visualization uses `d3.scaleBand` and `d3.scaleLinear` for axes, with bars rendered as SVG rectangles. The code includes `d3.axisBottom` and `d3.axisLeft` for labeled axes, and leverages the `observeResize` API from `@drbagwell/responsive-viz-axes` to handle responsive sizing.

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

Comments

Sign in to join the discussion.

MIT Licensed