Fork of Basic bar chart - data population India estimated 2019
✓ Published2🌍 Public
NNita
Last edited May 13, 2021
Created on May 12, 2021
This example shows estimated population data for Indian states and territories in 2019, displaying the last ten entries as a horizontal bar chart. The bars are rendered as SVG rectangles using D3 v6, with their widths scaled by a linear scale (`d3.scaleLinear`) mapping population values to pixel space. The data is loaded asynchronously from a CSV file via `d3.csv` from a GitHub gist, and the chart dimensions adapt to the browser window size. The code uses `d3.select`, `d3.extent`, and Promise-based async/await to handle data loading and rendering.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed