🌍 Public
Viewing a saved revision (read-only)
2cc57fc5127f4fa7a58e2a5d430ef06d
BAR GRAPH - Project
A bar graph displays the fifteen countries with the highest recorded pregnancy counts from a CSV dataset, ranking them along a horizontal axis. The visualization uses React to manage state and D3 v5’s `scaleBand`, `scaleLinear`, `csv`, and `max` functions to load data, compute scales, and render SVG rectangles. Axes are drawn manually with grid lines and text labels, while margins and dimensions are defined as constants. The chart updates reactively when data loads, showing a clean, horizontal bar layout for comparison.
AI-generated descriptionA demonstration of how to start using D3 version 6.