Skip to main content
100%

Bar chart Graph with D3.js

✓ Published0🌍 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
MIT Licensed

Similar vizzes