🌍 Public
Viewing a saved revision (read-only)
6cff2b999ecc4310965c1263198f564f
Lokesh Question 1.2
This example shows a horizontal bar chart of the populations of 20 countries in 2010, with each bar labeled by country name and the x-axis formatted in billions. The visualization uses React components to render SVG rects for each bar, with axes generated from d3.scaleBand and d3.scaleLinear. Data is loaded asynchronously from a CSV file via d3.csv, and the bars include a native SVG <title> element for tooltips. The styling uses a green fill for bars and blue tick lines.
AI-generated descriptionA demonstration of how to start using D3 version 6.