Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart Graph with D3.js

Public visualization

Viewing a saved revision (read-only)

27dd6939a5c041af8dc9ba2763a8bdf2

Bar chart Graph with D3.js

0 stars0🌍 Public
DDanthalakirankumar
Last edited Mar 7, 2022
Created on Mar 7, 2022

A horizontal bar chart displays the population of Indian states, with bars sorted by descending values from Uttar Pradesh to Andhra Pradesh. The visualization uses D3.js v7 to load CSV data via `d3.csv` and renders SVG rectangles scaled with `d3.scaleLinear` and `d3.scaleBand`. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, with state labels on the y-axis and population counts on the x-axis. The bars are styled orange with axis labels added as SVG text elements.

AI-generated description